Commit c44b538a authored by Bram's avatar Bram
Browse files

[fix] didn't reassigned newly created country

parent 7339e5df
......@@ -51,7 +51,7 @@ class Command(BaseCommand):
for address in reps["contact"]["address"]:
country = Country.objects.filter(code=address["country"]["code"])
if not country:
Country.objects.create(
country = Country.objects.create(
name=address["country"]["name"],
code=address["country"]["code"]
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment