X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..9d763695198b109f00b5d88a5cfe0190871271aa:/src/dictionary/migrations/0002_auto_20141006_1422.py diff --git a/src/dictionary/migrations/0002_auto_20141006_1422.py b/src/dictionary/migrations/0002_auto_20141006_1422.py index a9bad32b9..d763e9a49 100644 --- a/src/dictionary/migrations/0002_auto_20141006_1422.py +++ b/src/dictionary/migrations/0002_auto_20141006_1422.py @@ -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'],