Skip to content

Commit 75c8d2b

Browse files
committed
Fixing flake 8
1 parent 46f514a commit 75c8d2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dojo/survey/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,18 +539,18 @@ def edit_question(request, qid):
539539
extra_tags="alert-info")
540540
content_type = str(ContentType.objects.get_for_model(question))
541541

542-
if type in {"dojo | text question", "Defect Dojo | text question"}:
542+
if content_type in {"dojo | text question", "Defect Dojo | text question"}:
543543
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"}:
545545

546546
form = EditChoiceQuestionForm(instance=question)
547547
else:
548548
raise Http404
549549

550550
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"}:
552552
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"}:
554554
form = EditChoiceQuestionForm(request.POST, instance=question)
555555
else:
556556
raise Http404

0 commit comments

Comments
 (0)