fix: country objects
This commit is contained in:
parent
62a7eb5f2e
commit
30d624d0c5
|
|
@ -406,7 +406,7 @@ def add_countries(apps=None, schema_editor=None):
|
|||
Country = apps.get_model("shop", "Country")
|
||||
|
||||
for country_id, country_name in countries.items():
|
||||
Country.objects.create(
|
||||
Country.objects.get_or_create(
|
||||
country_id=country_id,
|
||||
name_de=country_name["de"],
|
||||
name_fr=country_name["fr"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue