Fix import

This commit is contained in:
Yohann D'ANELLO 2020-05-05 07:09:49 +02:00
parent 240b0472a0
commit 02475a4b8d
1 changed files with 1 additions and 0 deletions

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"))