django-cities-light
django-cities-light copied to clipboard
New model for admin2Codes
In our use case, Spain, we just implemented some code to load Provinces (admin2Codes). The model is kind of:
class IProvince:
id = 0 # ES.54.TO: country, region, province code
name = 1
name_ascii = 2
geonameid = 3
class Province(Base):
region = models.ForeignKey('Region')
name = models.CharField(max_length=200, db_index=True)
code = models.CharField(max_length=2, null=True, blank=True)
Will you appreciate a pull request with this feature?
I did the same for one of my project and I pushed modifications in a specific branch into my fork: https://github.com/Guts/django-cities-light/tree/subregions
You rock @Guts :guitar: