Pagination for cash sumary

This commit is contained in:
2017-03-13 16:32:59 +01:00
parent 3fd4d4b04b
commit e4deacbe56
2 changed files with 23 additions and 1 deletions

View File

@ -938,6 +938,8 @@ class CashSummaryListView(CanEditPropMixin, CounterAdminTabsMixin, ListView):
template_name = 'counter/cash_summary_list.jinja'
context_object_name = "cashsummary_list"
current_tab = "cash_summary"
queryset = CashRegisterSummary.objects.all().order_by('-date')
paginate_by = 10
def get_context_data(self, **kwargs):
""" Add sums to the context """