1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 15:32:22 +00:00

🐛 Fix pagination in transaction page

This commit is contained in:
Yohann D'ANELLO 2020-08-07 12:55:07 +02:00
parent 679ac3a652
commit 9751a5ad92

View File

@ -214,7 +214,7 @@ class TransactionSearchView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView
transactions = transactions.filter(created_at__lte=data["created_before"])
table = HistoryTable(transactions)
table.paginate(per_page=100)
table.paginate(per_page=100, page=self.request.GET.get("page", 1))
context["table"] = table
return context