add create exam form to rapids

This commit is contained in:
Ross
2021-04-04 20:07:51 +01:00
parent 845ab6c377
commit 04596da2e4
7 changed files with 33 additions and 9 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ from django.forms import (
from django.forms import inlineformset_factory
from generic.models import (
Examination,
Examination
)
from django.contrib.admin.widgets import FilteredSelectMultiple
@@ -19,4 +19,4 @@ from django.forms.widgets import RadioSelect, TextInput, Textarea
class ExaminationForm(ModelForm):
class Meta:
model = Examination
fields = ["examination"]
fields = ["examination"]
+3 -3
View File
@@ -53,15 +53,15 @@ class ExamBase(models.Model):
#exam_questions = SortedManyToManyField(Long, related_name="exams", blank="true")
active = models.BooleanField(
help_text="If an exam should be available", default=True
help_text="If an exam should be available", default=False
)
exam_mode = models.BooleanField(
help_text="If an exam should be take in exam_mode", default=True
help_text="If an exam should be taken in exam mode", default=True
)
publish_results = models.BooleanField(
help_text="If an exams results should be available", default=True
help_text="If an exams results should be available", default=False
)
recreate_json = models.BooleanField(