X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..e466cef774f05a0c2fd99df7b8e714d0da2b9773:/src/polls/migrations/0001_initial.py diff --git a/src/polls/migrations/0001_initial.py b/src/polls/migrations/0001_initial.py index 91c68aa00..58b9d8dd4 100644 --- a/src/polls/migrations/0001_initial.py +++ b/src/polls/migrations/0001_initial.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): @@ -30,7 +31,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('content', models.TextField(verbose_name='content')), ('vote_count', models.IntegerField(default=0, verbose_name='vote count')), - ('poll', models.ForeignKey(related_name=b'items', to='polls.Poll')), + ('poll', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='polls.Poll')), ], options={ 'verbose_name': 'vote item',