Commit 6b5d80fa authored by Jamesie Pic's avatar Jamesie Pic

Fixed recommendation delete support

parent ffe144e0
......@@ -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'):
......
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