Skip to content
Snippets Groups Projects
Commit 887ad69f authored by Ben Adida's avatar Ben Adida
Browse files

fixed voter list serialization

parent 744f92b0
No related branches found
No related tags found
No related merge requests found
...@@ -1309,7 +1309,7 @@ def voter_list(request, election): ...@@ -1309,7 +1309,7 @@ def voter_list(request, election):
if limit > 500: limit = 500 if limit > 500: limit = 500
voters = Voter.get_by_election(election, order_by='uuid', after=request.GET.get('after',None), limit= limit) voters = Voter.get_by_election(election, order_by='uuid', after=request.GET.get('after',None), limit= limit)
return [v.toJSONDict() for v in voters] return [v.ld_object.toDict() for v in voters]
@election_view() @election_view()
@json @json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment