mirror of
https://github.com/retspen/webvirtcloud
synced 2025-01-12 16:35:17 +00:00
Fixed default account
This commit is contained in:
parent
d1cf4a0ffb
commit
981eb65fac
1 changed files with 6 additions and 4 deletions
|
@ -5,10 +5,12 @@ from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
def add_useradmin(apps, schema_editor):
|
def add_useradmin(apps, schema_editor):
|
||||||
# from django.contrib.auth.models import User
|
from django.utils import timezone
|
||||||
# Broken in Django 1.8
|
from django.contrib.auth.models import User
|
||||||
# User.objects.create_superuser("admin", None, "admin")
|
|
||||||
pass
|
User.objects.create_superuser('admin', None, 'admin',
|
||||||
|
last_login=timezone.now()
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
Loading…
Reference in a new issue