0.1.45
fix get city when parse
This commit is contained in:
@@ -181,6 +181,9 @@ def parse_data():
|
||||
if city_Dict['name:ru']:
|
||||
kwargs.update({'name_ru': city_Dict['name:ru']})
|
||||
|
||||
if country:
|
||||
kwargs.update({'country': country})
|
||||
|
||||
try:
|
||||
city = City.objects.get(**kwargs)
|
||||
except City.DoesNotExist:
|
||||
|
||||
Reference in New Issue
Block a user