From: Guillaume Pellerin Date: Tue, 5 Mar 2024 09:59:49 +0000 (+0100) Subject: fix save X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b9a4573c04875ee126161bdf4bb30e82effdaf8f;p=teleforma.git fix save --- diff --git a/teleforma/management/commands/teleforma-add-department.py b/teleforma/management/commands/teleforma-add-department.py index 7d68bf64..1a975a53 100644 --- a/teleforma/management/commands/teleforma-add-department.py +++ b/teleforma/management/commands/teleforma-add-department.py @@ -19,7 +19,7 @@ class Command(BaseCommand): domain = args[2] organization = Organization.objects.get(name=organization_name) - department = Department.objects.get_or_create( + department, c = Department.objects.get_or_create( organization=organization, name=name, domain=domain