Skip to content

Commit

Permalink
previous marks for first mark should show Audit marks
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jul 8, 2024
1 parent e20c99c commit b25a411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crowdsourcer/views/marking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit b25a411

Please sign in to comment.