Skip to content
Snippets Groups Projects
Commit a063f0a6 authored by Ben Adida's avatar Ben Adida Committed by GitHub
Browse files

Merge pull request #154 from edmarmartineli/master

Correction of total records displayed in the navigation bar.
parents 2c1d0cc6 6b2c1dba
No related branches found
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