File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -539,18 +539,18 @@ def edit_question(request, qid):
539
539
extra_tags = "alert-info" )
540
540
content_type = str (ContentType .objects .get_for_model (question ))
541
541
542
- if type in {"dojo | text question" , "Defect Dojo | text question" }:
542
+ if content_type in {"dojo | text question" , "Defect Dojo | text question" }:
543
543
form = EditTextQuestionForm (instance = question )
544
- elif type in {"dojo | choice question" , "Defect Dojo | choice question" }:
544
+ elif content_type in {"dojo | choice question" , "Defect Dojo | choice question" }:
545
545
546
546
form = EditChoiceQuestionForm (instance = question )
547
547
else :
548
548
raise Http404
549
549
550
550
if request .method == "POST" :
551
- if type in {"dojo | text question" , "Defect Dojo | text question" }:
551
+ if content_type in {"dojo | text question" , "Defect Dojo | text question" }:
552
552
form = EditTextQuestionForm (request .POST , instance = question )
553
- elif type in {"dojo | choice question" , "Defect Dojo | choice question" }:
553
+ elif content_type in {"dojo | choice question" , "Defect Dojo | choice question" }:
554
554
form = EditChoiceQuestionForm (request .POST , instance = question )
555
555
else :
556
556
raise Http404
You can’t perform that action at this time.
0 commit comments