移除time_zone,修复problem越权

This commit is contained in:
zemal committed 2017-08-23 17:02:57 +08:00
1 parent 99fd87dbcf
commit 57ab7435af
10 files changed
+34 -31

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ class Command(BaseCommand):
rand_password = "rootroot"
user.set_password(rand_password)
user.save()
UserProfile.objects.create(user=user, time_zone="Asia/Shanghai")
UserProfile.objects.create(user=user)
self.stdout.write(self.style.SUCCESS("Successfully created super admin user.\n"
"Username: root\nPassword: %s\n"
"Remember to change password and turn on two factors auth "