Add filters to question review rendering for improved context

This commit is contained in:
Ross
2025-10-27 10:39:53 +00:00
parent 27e575f772
commit 3dc38ef57a
+1 -2
View File
@@ -3069,7 +3069,6 @@ class GenericViewBase:
- category: integer primary key of category (optional) - category: integer primary key of category (optional)
- status: one of the status codes (AC, OD, ER, RJ, IP), or 'UNREVIEWED' or 'ANY' - status: one of the status codes (AC, OD, ER, RJ, IP), or 'UNREVIEWED' or 'ANY'
""" """
from django.contrib.contenttypes.models import ContentType
# Read filters # Read filters
category = request.POST.get("category") or request.GET.get("category") category = request.POST.get("category") or request.GET.get("category")
@@ -3123,7 +3122,7 @@ class GenericViewBase:
if match: if match:
form = QuestionReviewForm() form = QuestionReviewForm()
return render(request, f"{self.app_name}/question_review_question.html", {"question": question, "form": form, "app_name": self.app_name}) return render(request, f"{self.app_name}/question_review_question.html", {"question": question, "form": form, "app_name": self.app_name, "filters": {"category": category, "status": status}})
# Nothing found - render complete page # Nothing found - render complete page
return render(request, f"{self.app_name}/question_review_complete.html", {"app_name": self.app_name}) return render(request, f"{self.app_name}/question_review_complete.html", {"app_name": self.app_name})