Skip to content
Snippets Groups Projects
Commit 6b2c1dba authored by Edmar's avatar Edmar
Browse files

Correction of total records displayed in the navigation bar.

parent fd746dc2
Branches
No related tags found
No related merge requests found
......@@ -47,8 +47,10 @@ def elections(request):
elections_paginator = Paginator(elections, limit)
elections_page = elections_paginator.page(page)
total_elections = elections_paginator.count
return render_template(request, "stats_elections", {'elections' : elections_page.object_list, 'elections_page': elections_page,
'limit' : limit, 'q': q})
'limit' : limit, 'total_elections': total_elections, 'q': q})
def recent_votes(request):
user = require_admin(request)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment