diff --git a/apps/treasury/templates/treasury/sogecredit_list.html b/apps/treasury/templates/treasury/sogecredit_list.html index c561da72..2bcf3155 100644 --- a/apps/treasury/templates/treasury/sogecredit_list.html +++ b/apps/treasury/templates/treasury/sogecredit_list.html @@ -60,7 +60,7 @@ SPDX-License-Identifier: GPL-3.0-or-later let pattern = searchbar_obj.val(); $("#credits_table").load(location.pathname + "?search=" + pattern.replace(" ", "%20") + ( - invalid_only_obj.is(':checked') ? "&valid=false" : "") + " #credits_table"); + invalid_only_obj.is(':checked') ? "" : "&valid=1") + " #credits_table"); $(".table-row").click(function () { window.document.location = $(this).data("href"); diff --git a/apps/treasury/views.py b/apps/treasury/views.py index 1b6dc127..08f190c2 100644 --- a/apps/treasury/views.py +++ b/apps/treasury/views.py @@ -431,7 +431,7 @@ class SogeCreditListView(LoginRequiredMixin, ProtectQuerysetMixin, SingleTableVi if "valid" not in self.request.GET or not self.request.GET["valid"]: qs = qs.filter(credit_transaction__valid=False) - return qs[:20] + return qs class SogeCreditManageView(LoginRequiredMixin, ProtectQuerysetMixin, BaseFormView, DetailView):