2.1.45 country short_code > code

This commit is contained in:
SDE
2025-02-28 17:22:50 +03:00
parent 25c913c572
commit 64de7ea34c

View File

@@ -25,7 +25,7 @@ def search_cities_in_db(search_str):
for item in objs_wo_tz:
item.get_n_save_timezone()
res_data = City.objects.filter(id__in=ids).values(
'id', 'name', 'country__name', 'timezone', 'country__flag', 'country__short_code'
'id', 'name', 'country__name', 'timezone', 'country__flag', 'country__code'
)
return list(res_data)