1 from django.db import models, migrations
4 class Migration(migrations.Migration):
7 ('sites', '0001_initial'),
11 migrations.CreateModel(
14 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
15 ('title', models.CharField(max_length=255)),
16 ('ordering', models.SmallIntegerField()),
19 'ordering': ['question', 'ordering'],
20 'verbose_name': 'answer',
21 'verbose_name_plural': 'answers',
23 bases=(models.Model,),
25 migrations.CreateModel(
28 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
29 ('slug', models.SlugField()),
30 ('ordering', models.SmallIntegerField()),
31 ('title', models.CharField(max_length=255)),
32 ('text', models.TextField(null=True, blank=True)),
33 ('description', models.TextField(null=True, blank=True)),
36 'ordering': ['quiz', 'ordering'],
37 'verbose_name': 'question',
38 'verbose_name_plural': 'questions',
40 bases=(models.Model,),
42 migrations.CreateModel(
45 ('site_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='sites.Site', on_delete=models.CASCADE)),
46 ('description', models.TextField()),
47 ('footer', models.TextField(null=True, blank=True)),
50 'verbose_name': 'quiz',
51 'verbose_name_plural': 'quizzes',
53 bases=('sites.site',),
55 migrations.CreateModel(
58 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
59 ('slug', models.SlugField()),
60 ('title', models.CharField(max_length=255)),
61 ('text', models.TextField()),
62 ('quiz', models.ForeignKey(to='quiz.Quiz', on_delete=models.CASCADE)),
65 'ordering': ['quiz', 'title'],
66 'verbose_name': 'result',
67 'verbose_name_plural': 'results',
69 bases=(models.Model,),
72 model_name='question',
74 field=models.ForeignKey(to='quiz.Quiz', on_delete=models.CASCADE),
75 preserve_default=True,
77 migrations.AlterUniqueTogether(
79 unique_together=set([('quiz', 'slug'), ('quiz', 'ordering')]),
84 field=models.ForeignKey(related_name='go_tos', blank=True, to='quiz.Question', null=True, on_delete=models.CASCADE),
85 preserve_default=True,
90 field=models.ForeignKey(to='quiz.Question', on_delete=models.CASCADE),
91 preserve_default=True,
96 field=models.ForeignKey(blank=True, to='quiz.Result', null=True, on_delete=models.CASCADE),
97 preserve_default=True,