fixes
[wolnelektury.git] / src / dictionary / migrations / 0002_auto_20141006_1422.py
index a9bad32..d763e9a 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
+import django.db.models.deletion
 
 
 class Migration(migrations.Migration):
@@ -17,8 +18,8 @@ class Migration(migrations.Migration):
             fields=[
                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                 ('anchor', models.CharField(max_length=64)),
-                ('book', models.ForeignKey(to='catalogue.Book')),
-                ('note', models.ForeignKey(to='dictionary.Note')),
+                ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='catalogue.Book')),
+                ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dictionary.Note')),
             ],
             options={
                 'ordering': ['book'],