Another upgrade.
[wolnelektury.git] / src / dictionary / migrations / 0001_initial.py
index 1908a84..58fb7aa 100644 (file)
@@ -1,7 +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 models, migrations
 from django.db import models, migrations
+import django.db.models.deletion
 
 
 class Migration(migrations.Migration):
 
 
 class Migration(migrations.Migration):
@@ -18,7 +19,7 @@ class Migration(migrations.Migration):
                 ('anchor', models.CharField(max_length=64)),
                 ('html', models.TextField()),
                 ('sort_key', models.CharField(max_length=128, db_index=True)),
                 ('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'],
             ],
             options={
                 'ordering': ['sort_key'],