From d680e37b895114cd0ff1dea8e29ff5da1400b378 Mon Sep 17 00:00:00 2001 From: Elmo BB <41227515+elmobb@users.noreply.github.com> Date: Thu, 19 May 2022 10:32:53 +0100 Subject: [PATCH] Fix question without category is duplicated --- survey/templates/survey/question.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/survey/templates/survey/question.html b/survey/templates/survey/question.html index 69fc0ef6..37265ee7 100644 --- a/survey/templates/survey/question.html +++ b/survey/templates/survey/question.html @@ -9,7 +9,7 @@ -->
{% for form in response_form %} - {% if form.field.widget.attrs.category == category.name or not form.field.widget.attrs.category %} + {% if form.field.widget.attrs.category == category.name or category.name == 'No category' and not form.field.widget.attrs.category %}