Skip to content

Commit

Permalink
[scorecards] as is_negatively_marked property to question
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Dec 4, 2023
1 parent 067f6ed commit 291e1a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scoring/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ def is_council_operations_only(self):
def evidence_links_cleaned(self):
return clean_links(self.evidence_links)

@property
def is_negatively_marked(self):
return self.question_type == "negative"

@classmethod
def get_average_scores(cls, section=None, council_group=None):
qs = PlanQuestionScore.objects.all()
Expand Down

0 comments on commit 291e1a9

Please sign in to comment.