coderholic / django-cities

Countries and cities of the world for Django projects
MIT License
927 stars 372 forks source link

NameError: global name 'geo_alt_names' is not defined #62

Closed jelenak closed 10 years ago

jelenak commented 10 years ago

Hello,

On runing command : ./manage.py cities --flush=all

when is flushing alt_names error:

File "/home/aliona/hpn.aksprendimai.lt/aruodai/cities/management/commands/cities.py", line 517, in flush_alt_name [geo_alt_name.objects.all().delete() for locales in geo_alt_names.values() for geo_alt_name in locales.values()] NameError: global name 'geo_alt_names' is not defined

All another date flushing pass OK.

coderholic commented 10 years ago

Thanks for reporting. Fixed in master.

jelenak commented 10 years ago

Thanks! :)