1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/accounts/migrations/0002_auto_20150325_0846.py

23 lines
464 B
Python
Raw Normal View History

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):
2015-04-06 07:51:50 +00:00
# from django.contrib.auth.models import User
2015-04-02 11:24:28 +00:00
# Broken in Django 1.8
2015-04-06 07:51:50 +00:00
# User.objects.create_superuser("admin", None, "admin")
pass
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
]