diff --git a/.gitignore b/.gitignore index f9ab117..ed62bd1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ .idea .DS_* *.pyc -webvirtcloud.sqlite3 +db.sqlite3 diff --git a/accounts/fixtures/initial_data.json b/accounts/fixtures/initial_data.json deleted file mode 100644 index 2d71f02..0000000 --- a/accounts/fixtures/initial_data.json +++ /dev/null @@ -1,13 +0,0 @@ -[ - { - "model": "auth.user", - "pk": 1, - "fields": { - "username": "admin", - "password": "pbkdf2_sha256$15000$Qkg4dizzDzpM$SRXEyTJR5d198JZes4LVhFXlWQYJGOAjQhnfhGXQLtc=", - "is_active": true, - "is_superuser": true, - "is_staff": true - } - } -] \ No newline at end of file diff --git a/accounts/migrations/0002_auto_20150325_0846.py b/accounts/migrations/0002_auto_20150325_0846.py index eac6d60..27500d5 100644 --- a/accounts/migrations/0002_auto_20150325_0846.py +++ b/accounts/migrations/0002_auto_20150325_0846.py @@ -2,15 +2,12 @@ from __future__ import unicode_literals from django.db import migrations -from django.contrib.auth.models import User -def add_admin(apps, schema_editor): - add_user = User.objects.create_user("admin", None, "admin") - add_user.is_active = True - add_user.is_superuser = True - add_user.is_staff = True - add_user.save() +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") class Migration(migrations.Migration): @@ -20,5 +17,5 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RunPython(add_admin), + migrations.RunPython(add_useradmin), ] diff --git a/db.sqlite3 b/db.sqlite3 index a1a057f..2ac4d17 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ