]> git.parisson.com Git - teleforma.git/commitdiff
fix save
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Tue, 5 Mar 2024 09:59:49 +0000 (10:59 +0100)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Tue, 5 Mar 2024 09:59:49 +0000 (10:59 +0100)
teleforma/management/commands/teleforma-add-department.py

index 7d68bf6439bd3622b91e097e90bd56431f925f91..1a975a53b7d746bdd27858c1f3de77d7a443928b 100644 (file)
@@ -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