fix: country objects

This commit is contained in:
Reto Aebersold 2023-12-04 15:54:19 +01:00 committed by Christian Cueni
parent 62a7eb5f2e
commit 30d624d0c5
1 changed files with 1 additions and 1 deletions

View File

@ -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"],