diff --git a/crowdsourcer/views/marking.py b/crowdsourcer/views/marking.py index 173dc4d..8748ebb 100644 --- a/crowdsourcer/views/marking.py +++ b/crowdsourcer/views/marking.py @@ -243,13 +243,14 @@ def get_initial_obj(self): if is_previous: self.has_previous_questions = True + audit_rt = ResponseType.objects.get(type="Audit") question_list = self.questions.values_list( "previous_question_id", flat=True ) prev_responses = Response.objects.filter( authority=self.authority, question__in=question_list, - response_type=self.rt, + response_type=audit_rt, ).select_related("question") response_map = {}