Commit 9830e20d authored by Arnaud Fabre's avatar Arnaud Fabre

fixes models for api compatibility

parent 811a71d2
......@@ -23,9 +23,10 @@ class Proposal(models.Model):
# Presentation for the api
def vote_api_list(self):
return [
{'position': vote.position,
'representative': vote.representative_remote_id}
return [{'position': vote.position,
'representative_remote_id': vote.representative_remote_id,
'representative_name': vote.representative_name
for vote in self.vote_set.all()]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment