migrate examinations to generic model (and start adding mangament)
This commit is contained in:
+9
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user