1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
7 class Migration(migrations.Migration):
10 ('sites', '0001_initial'),
14 migrations.CreateModel(
17 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18 ('title', models.CharField(max_length=255)),
19 ('ordering', models.SmallIntegerField()),
22 'ordering': ['question', 'ordering'],
23 'verbose_name': 'answer',
24 'verbose_name_plural': 'answers',
26 bases=(models.Model,),
28 migrations.CreateModel(
31 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
32 ('slug', models.SlugField()),
33 ('ordering', models.SmallIntegerField()),
34 ('title', models.CharField(max_length=255)),
35 ('text', models.TextField(null=True, blank=True)),
36 ('description', models.TextField(null=True, blank=True)),
39 'ordering': ['quiz', 'ordering'],
40 'verbose_name': 'question',
41 'verbose_name_plural': 'questions',
43 bases=(models.Model,),
45 migrations.CreateModel(
48 ('site_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='sites.Site')),
49 ('description', models.TextField()),
50 ('footer', models.TextField(null=True, blank=True)),
53 'verbose_name': 'quiz',
54 'verbose_name_plural': 'quizzes',
56 bases=('sites.site',),
58 migrations.CreateModel(
61 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
62 ('slug', models.SlugField()),
63 ('title', models.CharField(max_length=255)),
64 ('text', models.TextField()),
65 ('quiz', models.ForeignKey(to='quiz.Quiz')),
68 'ordering': ['quiz', 'title'],
69 'verbose_name': 'result',
70 'verbose_name_plural': 'results',
72 bases=(models.Model,),
75 model_name='question',
77 field=models.ForeignKey(to='quiz.Quiz'),
78 preserve_default=True,
80 migrations.AlterUniqueTogether(
82 unique_together=set([('quiz', 'slug'), ('quiz', 'ordering')]),
87 field=models.ForeignKey(related_name='go_tos', blank=True, to='quiz.Question', null=True),
88 preserve_default=True,
93 field=models.ForeignKey(to='quiz.Question'),
94 preserve_default=True,
99 field=models.ForeignKey(blank=True, to='quiz.Result', null=True),
100 preserve_default=True,