This commit is contained in:
Ross
2022-05-21 22:09:37 +01:00
parent 851e681400
commit 781b6bc1fe
26 changed files with 311 additions and 70 deletions
+6 -13
View File
@@ -7,7 +7,7 @@ from django.forms import (
CharField,
)
from django.forms import inlineformset_factory
from generic.forms import ExamFormMixin
from generic.forms import ExamAuthorFormMixin, ExamFormMixin
from longs.models import (
# Examination,
@@ -267,16 +267,9 @@ LongSeriesImageFormSet = inlineformset_factory(
class ExamForm(ExamFormMixin, ModelForm):
class Meta:
class Meta(ExamFormMixin.Meta):
model = Exam
fields = [
"name",
"time_limit",
"open_access",
"authors_only",
"exam_mode",
"active",
"publish_results",
"double_mark",
"archive",
]
class ExamAuthorForm(ExamAuthorFormMixin):
class Meta(ExamAuthorFormMixin.Meta):
model = Exam