fef-questionnaire/questionnaire/migrations/0002_auto_20160929_1320.py

37 lines
1.2 KiB
Python
Raw Normal View History

2016-11-03 15:43:08 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('questionnaire', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Run',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('runid', models.CharField(max_length=32, null=True)),
],
),
migrations.AddField(
model_name='answer',
name='run',
field=models.ForeignKey(on_delete=models.CASCADE, related_name='answers', to='questionnaire.Run', null=True),
2016-11-03 15:43:08 +00:00
),
migrations.AddField(
model_name='runinfo',
name='run',
field=models.ForeignKey(on_delete=models.CASCADE, related_name='run_infos', to='questionnaire.Run', null=True),
2016-11-03 15:43:08 +00:00
),
migrations.AddField(
model_name='runinfohistory',
name='run',
field=models.ForeignKey(on_delete=models.CASCADE, related_name='run_info_histories', to='questionnaire.Run', null=True),
2016-11-03 15:43:08 +00:00
),
]