Skip to content
Snippets Groups Projects
Unverified Commit b94b7983 authored by Douglas Cerna (Soy Douglas)'s avatar Douglas Cerna (Soy Douglas) Committed by Marco Ciotola
Browse files

Fixed election sorting in admin elections page

parent 04268e93
No related branches found
No related tags found
No related merge requests found
......@@ -42,8 +42,7 @@ def elections(request):
limit = int(request.GET.get('limit', 25))
q = request.GET.get('q','')
elections = Election.objects.filter(name__icontains = q)
elections.all().order_by('-created_at')
elections = Election.objects.filter(name__icontains = q).order_by('-created_at')
elections_paginator = Paginator(elections, limit)
elections_page = elections_paginator.page(page)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment