Fix template path for question review block and remove unnecessary form wrapper to prevent nested forms
This commit is contained in:
+1
-1
@@ -3007,7 +3007,7 @@ class GenericViewBase:
|
||||
|
||||
# Default: render the block (latest if exists, otherwise form)
|
||||
if latest:
|
||||
return render(request, "/generic/partials/question_review_block.html", {"review": latest, "question": question, "app_name": self.app_name})
|
||||
return render(request, "generic/partials/question_review_block.html", {"review": latest, "question": question, "app_name": self.app_name})
|
||||
else:
|
||||
# Ensure a form is available for the template
|
||||
if latest:
|
||||
|
||||
Reference in New Issue
Block a user