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

Fixed recommendation delete support

parent ffe144e0
......@@ -63,10 +63,11 @@ class MemopolVote(Vote):
def absolute_score(self):
if not self.proposal.recommendation_id:
return 0
recommendation = self.proposal.recommendation
except models.ObjectDoesNotExist:
# Recommendation was deleted
return 0
weight = recommendation.weight
if (self.position == 'abstain' or
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