diff --git a/longs/models.py b/longs/models.py index 9c775a71..5269acaa 100644 --- a/longs/models.py +++ b/longs/models.py @@ -797,6 +797,15 @@ class CidUserAnswer(models.Model): return "" return float(self.score) + def discrepant_answers(self): + marks = set(self.mark.values_list("score", flat=True)) + if len(marks) > 1: + return True + return False + + + + @reversion.register class AnswerMarks(models.Model): diff --git a/longs/templates/longs/mark_answer.html b/longs/templates/longs/mark_answer.html index f03ceebd..bafc980f 100644 --- a/longs/templates/longs/mark_answer.html +++ b/longs/templates/longs/mark_answer.html @@ -12,6 +12,18 @@