mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Macro for pagination
This commit is contained in:
@ -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'
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user