Fix country

This commit is contained in:
littlewolf 2019-12-16 14:48:42 +03:00
parent 1841da0097
commit f542403b96

View File

@ -572,7 +572,7 @@ def add_fake_country():
"mysql_ids": []
}
country = Country.objects.create(**country_data)
country, _ = Country.objects.get_or_create(**country_data)
# add regions and subregions
regions_data = [