2015-03-25 09:36:37 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2015-03-27 15:12:15 +00:00
|
|
|
from django.db import migrations
|
2015-03-25 09:36:37 +00:00
|
|
|
|
2015-03-27 15:12:15 +00:00
|
|
|
|
2015-04-02 11:24:28 +00:00
|
|
|
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")
|
2015-03-25 09:36:37 +00:00
|
|
|
|
2015-03-27 15:12:15 +00:00
|
|
|
|
2015-03-25 09:36:37 +00:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('accounts', '0001_initial'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2015-04-02 11:24:28 +00:00
|
|
|
migrations.RunPython(add_useradmin),
|
2015-03-27 15:12:15 +00:00
|
|
|
]
|