migrate examinations to generic model (and start adding mangament)

This commit is contained in:
Ross
2023-06-19 12:37:55 +01:00
parent 154494e4b0
commit 6c1fd3ae2f
21 changed files with 429 additions and 64 deletions
+9 -1
View File
@@ -115,9 +115,17 @@ class ExamAuthorFormMixin(ModelForm):
class ExaminationForm(ModelForm):
def __init__(self, *args, **kwargs):
# Where is this coming from?
if "user" in kwargs:
user = kwargs.pop("user")
ModelForm.__init__(self, *args, **kwargs)
super(ExaminationForm, self).__init__(*args, **kwargs)
class Meta:
model = Examination
fields = ["examination"]
fields = ["examination", "modality"]
class QuestionNoteForm(ModelForm):