coderholic / django-cities

Countries and cities of the world for Django projects
MIT License
930 stars 374 forks source link

How to describe restrictions of product? #242

Open mihalt opened 3 months ago

mihalt commented 3 months ago

For example, I have products that have not just a few global regions included (like EU, Asia etc), but generally that has all regions indluded except any specific countries excluded (like global region except EU). So, should I probably have additional field excluded_regions and probably to custom model from Continent? Do you think that it is good idea?

Should I use this inheritance as swappable model then, right? Will all features of Continent be saved if I just add a few addtional fields?