1 from django.db import models, migrations
2 import django.db.models.deletion
5 class Migration(migrations.Migration):
11 migrations.CreateModel(
14 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
15 ('question', models.TextField(verbose_name='question')),
16 ('slug', models.SlugField(verbose_name='Slug')),
17 ('open', models.BooleanField(default=False, verbose_name='open')),
20 'verbose_name': 'Poll',
21 'verbose_name_plural': 'Polls',
23 bases=(models.Model,),
25 migrations.CreateModel(
28 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
29 ('content', models.TextField(verbose_name='content')),
30 ('vote_count', models.IntegerField(default=0, verbose_name='vote count')),
31 ('poll', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='polls.Poll')),
34 'verbose_name': 'vote item',
35 'verbose_name_plural': 'vote items',
37 bases=(models.Model,),