From 9484b11c41cba77c7002326bb1cf1502af55fa29 Mon Sep 17 00:00:00 2001 From: Retspen Date: Thu, 2 Apr 2015 14:24:28 +0300 Subject: [PATCH] DB changes --- .gitignore | 2 +- accounts/fixtures/initial_data.json | 13 ------------- .../migrations/0002_auto_20150325_0846.py | 13 +++++-------- db.sqlite3 | Bin 3072 -> 54272 bytes 4 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 accounts/fixtures/initial_data.json 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 a1a057f31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