fix a number of things
This commit is contained in:
+4
-2
@@ -583,8 +583,10 @@ class SelfReviewForm(ModelForm):
|
||||
widgets = {"user_exam": HiddenInput(), "case": HiddenInput()}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
user_exam_id = kwargs.pop("user_exam_id")
|
||||
case_id = kwargs.pop("case_id")
|
||||
if "user_exam_id" in kwargs:
|
||||
user_exam_id = kwargs.pop("user_exam_id")
|
||||
if "case_id" in kwargs:
|
||||
case_id = kwargs.pop("case_id")
|
||||
|
||||
ModelForm.__init__(self, *args, **kwargs)
|
||||
super(SelfReviewForm, self).__init__(*args, **kwargs)
|
||||
Reference in New Issue
Block a user