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

Fixed recommendation delete support

parent ffe144e0
......@@ -63,11 +63,12 @@ class MemopolVote(Vote):
def absolute_score(self):
if not self.proposal.recommendation_id:
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'):
Supports Markdown
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