1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-02-11 23:15:18 +00:00
webvirtcloud/accounts/migrations/0002_auto_20150325_0846.py

21 lines
494 B
Python

from django.db import migrations
def add_useradmin(apps, schema_editor):
from django.utils import timezone
from django.contrib.auth.models import User
User.objects.create_superuser('admin', None, 'admin',
last_login=timezone.now()
)
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.RunPython(add_useradmin),
]