Skip to content
Extraits de code Groupes Projets
Valider 6b5d80fa rédigé par Jamesie Pic's avatar Jamesie Pic
Parcourir les fichiers

Fixed recommendation delete support

parent ffe144e0
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -63,11 +63,12 @@ class MemopolVote(Vote):
@cached_property
def absolute_score(self):
if not self.proposal.recommendation_id:
try:
recommendation = self.proposal.recommendation
except models.ObjectDoesNotExist:
# Recommendation was deleted
return 0
recommendation = self.proposal.recommendation
weight = recommendation.weight
if (self.position == 'abstain' or
recommendation.recommendation == 'abstain'):
......
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