X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3af75386ed5c78b09c4669442a2422a388e949c3..9ce7b544a0616db407be602ea453771fc9c0a6dd:/src/isbn/migrations/0001_initial.py 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')), ], ), ]