django-cities-light icon indicating copy to clipboard operation
django-cities-light copied to clipboard

New model for admin2Codes

Open jlmadurga opened this issue 8 years ago • 2 comments

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?

jlmadurga avatar Aug 11 '17 12:08 jlmadurga

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

Guts avatar Dec 29 '17 19:12 Guts

You rock @Guts :guitar:

jpic avatar Dec 29 '17 19:12 jpic