coderholic / django-cities

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

AlternativeNames queryset is empty after ...import=city #168

Closed shalakhin closed 6 years ago

shalakhin commented 7 years ago

Checklist

Steps to reproduce

1) pip install 2) added to INSTALLED_APPS 3) added postgis extension to the database 4) ./manage.py migrate 5) running the script from the README to import=city (it ends successfully and I see the list of cities) 6) But no alternative names provided.

Expected behavior

Alternative names should not be empty.

Actual behavior

AlternativeName.objects.all() gives [] (empty list)

blag commented 6 years ago

This isn't a bug - you have to import alternative names separately from everything else.

Please try importing with --import=alt_name and report back. Closing for now.