mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-21 16:38:21 +02:00
Add Question model
This commit is contained in:
22
apps/participation/migrations/0007_question.py
Normal file
22
apps/participation/migrations/0007_question.py
Normal file
@ -0,0 +1,22 @@
|
||||
# Generated by Django 3.0.10 on 2020-10-31 13:36
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('participation', '0006_phase'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Question',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('question', models.TextField(verbose_name='question')),
|
||||
('participation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='questions', to='participation.Participation', verbose_name='participation')),
|
||||
],
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user