X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3af75386ed5c78b09c4669442a2422a388e949c3..eaf0711613bea8181528d8911b30ef7976b7bb42:/src/isbn/migrations/0001_initial.py?ds=sidebyside diff --git a/src/isbn/migrations/0001_initial.py b/src/isbn/migrations/0001_initial.py index c4c09ad98..b3c9aec50 100644 --- a/src/isbn/migrations/0001_initial.py +++ b/src/isbn/migrations/0001_initial.py @@ -1,7 +1,5 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - from django.db import migrations, models +import django.db.models.deletion import jsonfield.fields @@ -38,7 +36,7 @@ class Migration(migrations.Migration): ('language', models.CharField(max_length=4)), ('imprint', models.CharField(max_length=256)), ('publishing_date', models.DateField()), - ('isbn_pool', models.ForeignKey(to='isbn.ISBNPool')), + ('isbn_pool', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='isbn.ISBNPool')), ], ), ]