From 690cabe30cafa33f7a38fd666bba66dfe2c3993b Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 27 Oct 2025 14:13:41 +0000 Subject: [PATCH] Update default status filter to return only unreviewed questions if not specified --- generic/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/generic/views.py b/generic/views.py index edba078d..eb584762 100644 --- a/generic/views.py +++ b/generic/views.py @@ -3067,12 +3067,13 @@ class GenericViewBase: Accepts POST or GET parameters: - 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' + If not supplied, the default behavior is to return only unreviewed questions. """ # Read filters category = request.POST.get("category") or request.GET.get("category") - status = request.POST.get("status") or request.GET.get("status") or "ANY" + status = request.POST.get("status") or request.GET.get("status") or "UNREVIEWED" # How many matching questions to skip (useful for Skip button). Expected integer >= 0. try: skip = int(request.POST.get("skip") or request.GET.get("skip") or 0)