1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-23 19:06:37 +02:00

Minor fixes on consumptions page, research is now faster

This commit is contained in:
Yohann D'ANELLO
2020-03-13 10:29:27 +01:00
parent a1f8ef721a
commit 8c795c38dc
5 changed files with 14 additions and 9 deletions

View File

@ -110,12 +110,12 @@ class ConsoView(LoginRequiredMixin, SingleTableView):
"""
Consume
"""
model = Transaction
queryset = Transaction.objects.order_by("-id").all()[:50]
template_name = "note/conso_form.html"
# Transaction history table
table_class = HistoryTable
table_pagination = {"per_page": 20}
table_pagination = {"per_page": 50}
def get_context_data(self, **kwargs):
"""