1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
7 class Migration(migrations.Migration):
13 migrations.CreateModel(
16 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17 ('question', models.TextField(verbose_name='question')),
18 ('slug', models.SlugField(verbose_name='Slug')),
19 ('open', models.BooleanField(default=False, verbose_name='open')),
22 'verbose_name': 'Poll',
23 'verbose_name_plural': 'Polls',
25 bases=(models.Model,),
27 migrations.CreateModel(
30 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
31 ('content', models.TextField(verbose_name='content')),
32 ('vote_count', models.IntegerField(default=0, verbose_name='vote count')),
33 ('poll', models.ForeignKey(related_name=b'items', to='polls.Poll')),
36 'verbose_name': 'vote item',
37 'verbose_name_plural': 'vote items',
39 bases=(models.Model,),