Skip to content
Extraits de code Groupes Projets
Valider 9830e20d rédigé par Arnaud Fabre's avatar Arnaud Fabre
Parcourir les fichiers

fixes models for api compatibility

parent 811a71d2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
2 requêtes de fusion!158Attempt at fixing tests in the restructure branch,!157WIP - Restructure the repository
......@@ -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()]
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter