From d6c508bb46d660947718083e3fa214049253c42b Mon Sep 17 00:00:00 2001 From: Yaroslsav-95 Date: Thu, 29 Mar 2018 16:45:02 +0300 Subject: Fixed bugs, and compatibility issues with Django 2.0 --- weblog/migrations/0008_auto_20180329_1316.py | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 weblog/migrations/0008_auto_20180329_1316.py (limited to 'weblog/migrations/0008_auto_20180329_1316.py') diff --git a/weblog/migrations/0008_auto_20180329_1316.py b/weblog/migrations/0008_auto_20180329_1316.py new file mode 100644 index 0000000..f66aa65 --- /dev/null +++ b/weblog/migrations/0008_auto_20180329_1316.py @@ -0,0 +1,30 @@ +# Generated by Django 2.0.3 on 2018-03-29 13:16 + +from django.conf import settings +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('weblog', '0007_auto_20180122_1943'), + ] + + operations = [ + migrations.AlterField( + model_name='blogpost', + name='author', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='Author'), + ), + migrations.AlterField( + model_name='category', + name='parent_category', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='weblog.Category', verbose_name='Parent category'), + ), + migrations.AlterField( + model_name='postcomment', + name='author', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Author'), + ), + ] -- cgit v1.2.3