X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..75957f735219259d3b4bc361f80ccd3d7b92a0e9:/src/dictionary/migrations/0001_initial.py?ds=sidebyside diff --git a/src/dictionary/migrations/0001_initial.py b/src/dictionary/migrations/0001_initial.py index 1908a840a..60ea4b684 100644 --- a/src/dictionary/migrations/0001_initial.py +++ b/src/dictionary/migrations/0001_initial.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import models, migrations +import django.db.models.deletion class Migration(migrations.Migration): @@ -18,7 +16,7 @@ class Migration(migrations.Migration): ('anchor', models.CharField(max_length=64)), ('html', models.TextField()), ('sort_key', models.CharField(max_length=128, db_index=True)), - ('book', models.ForeignKey(to='catalogue.Book')), + ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')), ], options={ 'ordering': ['sort_key'],