Macro for pagination

This commit is contained in:
klmp200 committed 2017-06-07 18:39:42 +02:00
1 parent d3fbc65cdc
commit 0076c9cdb4
4 files changed
+28 -18

No files matched your search

+2
View File
@@ -164,6 +164,8 @@ class ElectionsListView(CanViewMixin, ListView):
A list with all responsabilities and their candidates
"""
model = Election
ordering = ["-id"]
paginate_by = 10
template_name = 'election/election_list.jinja'