mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 12:04:15 +00:00
22 lines
464 B
Python
22 lines
464 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
def add_useradmin(apps, schema_editor):
|
|
# from django.contrib.auth.models import User
|
|
# Broken in Django 1.8
|
|
# User.objects.create_superuser("admin", None, "admin")
|
|
pass
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('accounts', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(add_useradmin),
|
|
]
|