test(sorting): default-order regression + all-keys smoke (#68)

This commit is contained in:
2026-06-21 14:15:28 +02:00
parent 939d3a9e33
commit 4dae3a1845
4 changed files with 94 additions and 26 deletions
+3 -1
View File
@@ -135,7 +135,9 @@ def list_purchases(request: HttpRequest) -> HttpResponse:
if pf is not None:
purchases = purchases.filter(pf.to_q())
sort = apply_sort(purchases, parse_find_filter(request), PURCHASE_SORTS, PURCHASE_DEFAULT_SORT)
sort = apply_sort(
purchases, parse_find_filter(request), PURCHASE_SORTS, PURCHASE_DEFAULT_SORT
)
purchases = sort.queryset
for key in sort.unknown:
messages.warning(request, f"Unknown sort field '{key}' was ignored.")