diff --git a/crowdsourcer/management/commands/export_marks.py b/crowdsourcer/management/commands/export_marks.py index 0883fed..7cdd08b 100644 --- a/crowdsourcer/management/commands/export_marks.py +++ b/crowdsourcer/management/commands/export_marks.py @@ -171,6 +171,7 @@ def handle( "topic", "clarifications", "groups", + "previous_year_question", ] ] @@ -187,6 +188,10 @@ def handle( groups = [g.description for g in question.questiongroup.all()] + prev_question = "" + if question.previous_question: + prev_question = question.previous_question.number_and_part + question_data.append( [ question.number_and_part, @@ -200,6 +205,7 @@ def handle( question.topic, question.clarifications, ",".join(groups), + prev_question, ] )