diff options
author | luxagraf <sng@luxagraf.net> | 2016-01-24 16:42:33 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-01-24 16:42:33 -0500 |
commit | 5fe49b869e6660f66487d14c2f60d4d77b06ee50 (patch) | |
tree | 7fe746c381b60f2ae15af937e2740ba4ad0b08b3 /app | |
parent | 3c30c584f6254ed729f8fda0f898cec8d53566d4 (diff) |
tweaked migrations for daily
Diffstat (limited to 'app')
-rw-r--r-- | app/daily/migrations/0008_auto_20160124_0914.py | 3 | ||||
-rw-r--r-- | app/daily/migrations/0009_auto_20160124_1622.py | 22 | ||||
-rw-r--r-- | app/daily/migrations/0009_remove_daily_title.py (renamed from app/daily/migrations/0010_remove_daily_title.py) | 2 |
3 files changed, 2 insertions, 25 deletions
diff --git a/app/daily/migrations/0008_auto_20160124_0914.py b/app/daily/migrations/0008_auto_20160124_0914.py index 477fe99..eff3604 100644 --- a/app/daily/migrations/0008_auto_20160124_0914.py +++ b/app/daily/migrations/0008_auto_20160124_0914.py @@ -20,8 +20,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='daily', name='user', - field=models.OneToOneField(default=lux.id, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - preserve_default=False, + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AlterField( model_name='daily', diff --git a/app/daily/migrations/0009_auto_20160124_1622.py b/app/daily/migrations/0009_auto_20160124_1622.py deleted file mode 100644 index c7bde07..0000000 --- a/app/daily/migrations/0009_auto_20160124_1622.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.9 on 2016-01-24 16:22 -from __future__ import unicode_literals - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('daily', '0008_auto_20160124_0914'), - ] - - operations = [ - migrations.AlterField( - model_name='daily', - name='user', - field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), - ), - ] diff --git a/app/daily/migrations/0010_remove_daily_title.py b/app/daily/migrations/0009_remove_daily_title.py index 6e4d08c..085adf3 100644 --- a/app/daily/migrations/0010_remove_daily_title.py +++ b/app/daily/migrations/0009_remove_daily_title.py @@ -8,7 +8,7 @@ from django.db import migrations class Migration(migrations.Migration): dependencies = [ - ('daily', '0009_auto_20160124_1622'), + ('daily', '0008_auto_20160124_0914'), ] operations = [ |