1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

Minor fixes on consumptions page

This commit is contained in:
Yohann D'ANELLO
2020-03-13 09:26:39 +01:00
parent 56a2d482c9
commit a1f8ef721a
6 changed files with 35 additions and 17 deletions

View File

@ -17,8 +17,8 @@ class HistoryTable(tables.Table):
'table table-condensed table-striped table-hover'
}
model = Transaction
exclude = ("polymorphic_ctype", )
order_by = ('-id', )
exclude = ("id", "polymorphic_ctype", )
order_by = ('-created_at', )
template_name = 'django_tables2/bootstrap4.html'
sequence = ('...', 'total', 'valid')

View File

@ -115,7 +115,7 @@ class ConsoView(LoginRequiredMixin, SingleTableView):
# Transaction history table
table_class = HistoryTable
table_pagination = {"per_page": 10}
table_pagination = {"per_page": 20}
def get_context_data(self, **kwargs):
"""