91c68aa00458c29d4a2cf842285456472195b6bc
[wolnelektury.git] / apps / polls / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Poll',
15             fields=[
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')),
20             ],
21             options={
22                 'verbose_name': 'Poll',
23                 'verbose_name_plural': 'Polls',
24             },
25             bases=(models.Model,),
26         ),
27         migrations.CreateModel(
28             name='PollItem',
29             fields=[
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')),
34             ],
35             options={
36                 'verbose_name': 'vote item',
37                 'verbose_name_plural': 'vote items',
38             },
39             bases=(models.Model,),
40         ),
41     ]