50 lines
1.7 KiB
Python
50 lines
1.7 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.9.1 on 2016-01-31 17:13
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Option',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('text', models.CharField(max_length=100, null=True)),
|
||
|
('correct', models.BooleanField(default=False)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Question',
|
||
|
fields=[
|
||
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
||
|
('title', models.CharField(max_length=100, null=True)),
|
||
|
('text', models.TextField(null=True)),
|
||
|
('explanation', models.TextField(null=True)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Setting',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('title', models.CharField(max_length=100, null=True)),
|
||
|
('message', models.TextField(null=True)),
|
||
|
('footer', models.TextField(null=True)),
|
||
|
('active', models.BooleanField(default=False, unique=True)),
|
||
|
],
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='option',
|
||
|
name='question',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='elearning.Question'),
|
||
|
),
|
||
|
]
|