Merge remote-tracking branch 'zawadzki/new-design'
[wolnelektury.git] / src / isbn / migrations / 0001_initial.py
index c4c09ad..f55eef0 100644 (file)
@@ -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')),
             ],
         ),
     ]