diff --git a/apps/treasury/templates/treasury/sogecredit_list.html b/apps/treasury/templates/treasury/sogecredit_list.html index c561da728cfc3f290670c9faddf8e6f7403f01db..2bcf3155345f3b15e5688c0683610431089a06a9 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 1b6dc12765cec7783fb90982008d8cffd0b254c1..08f190c25c6e7ed4128c786a4f4302c0f8ecc8d4 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):