coderholic / django-cities

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

City and postal code relationship #206

Open jeromecaisip opened 6 years ago

jeromecaisip commented 6 years ago

Why does the city property of the postal_code object return None or the city.postal_code.all() retruns an empty queryset.? I did --import=all. Did I miss anything on the setup?

MySecondLanguage commented 2 years ago

I am facing same issue/

chrislan815 commented 1 year ago

same... can't tell what i'm doing it wrong either. Also on the admin page, postal would hangs on individual postal_code.

[edit]: I think I find out the cause; from default the city_id isn't populated for example:

postgres@/tmp:abc> select city_id from cities_postalcode where code='012312';
+---------+
| city_id |
|---------|
| <null>  |
+---------+
sowinski commented 8 months ago

Same here.

Also I think the project is dead.

Is there any fork is someone interested to fork this project?

arthanson commented 8 months ago

Sorry, will get to. updating it shortly

sowinski commented 8 months ago

@arthanson Do you need support? I am not able to import postalcodes at the moment at all.

I could provide testcases if this would help you