46 lines
2.4 KiB
Python
46 lines
2.4 KiB
Python
# Generated by Django 3.2.13 on 2023-04-04 11:49
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import vbv_lernwelt.assignment.models
|
|
import wagtail.blocks
|
|
import wagtail.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('wagtailcore', '0069_log_entry_jsonfield'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Assignment',
|
|
fields=[
|
|
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
|
|
('starting_position', models.TextField(help_text='Erläuterung der Ausgangslage')),
|
|
('effort_required', models.CharField(blank=True, help_text='Zeitaufwand als Text', max_length=100)),
|
|
('performance_objectives', wagtail.fields.StreamField([('performance_objective', wagtail.blocks.StructBlock([('text', wagtail.blocks.TextBlock())]))], blank=True, help_text='Leistungsziele des Auftrags', use_json_field=True)),
|
|
('assessment_description', models.TextField(blank=True, help_text='Beschreibung der Bewertung')),
|
|
('assessment_document_url', models.CharField(blank=True, help_text='URL zum Beeurteilungsinstrument', max_length=255)),
|
|
('tasks', wagtail.fields.StreamField([('task', wagtail.blocks.StructBlock([('title', wagtail.blocks.TextBlock()), ('file_submission_required', wagtail.blocks.BooleanBlock(required=False)), ('content', wagtail.blocks.StreamBlock([('explanation', wagtail.blocks.StructBlock([('text', wagtail.blocks.TextBlock())])), ('user_text_input', vbv_lernwelt.assignment.models.UserTextInputBlock()), ('user_confirmation', wagtail.blocks.StructBlock([('text', wagtail.blocks.TextBlock())]))], blank=True))]))], blank=True, help_text='Teilaufgaben', use_json_field=True)),
|
|
],
|
|
options={
|
|
'verbose_name': 'Auftrag',
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='AssignmentListPage',
|
|
fields=[
|
|
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
]
|