X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3af75386ed5c78b09c4669442a2422a388e949c3..907aba88951334676a259dccc8f7edd8934d5e00:/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..f55eef07b 100644 --- a/src/isbn/migrations/0001_initial.py +++ b/src/isbn/migrations/0001_initial.py @@ -1,8 +1,8 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# from django.db import migrations, models -import jsonfield.fields +import django.db.models.deletion class Migration(migrations.Migration): @@ -32,13 +32,13 @@ class Migration(migrations.Migration): ('product_form_detail', models.CharField(max_length=8, blank=True)), ('title', models.CharField(max_length=256)), ('part_number', models.CharField(max_length=64, blank=True)), - ('contributors', jsonfield.fields.JSONField()), + ('contributors', models.TextField()), ('edition_type', models.CharField(max_length=4)), ('edition_number', models.IntegerField(default=1)), ('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')), ], ), ]