1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 18:22:24 +00:00

Fix import

This commit is contained in:
Yohann D'ANELLO 2020-05-05 07:09:49 +02:00
parent 240b0472a0
commit 02475a4b8d

View File

@ -164,6 +164,7 @@ class Command(BaseCommand):
"is_staff": args[18] == "ADMIN",
"is_superuser": args[18] == "ADMIN",
}
print(obj_dict)
with transaction.atomic():
TFJMUser.objects.create(**obj_dict)
self.stdout.write(self.style.SUCCESS("Users imported"))