We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838dd49 commit d27af45Copy full SHA for d27af45
crowdsourcer/management/commands/export_marks.py
@@ -171,6 +171,7 @@ def handle(
171
"topic",
172
"clarifications",
173
"groups",
174
+ "previous_year_question",
175
]
176
177
@@ -187,6 +188,10 @@ def handle(
187
188
189
groups = [g.description for g in question.questiongroup.all()]
190
191
+ prev_question = ""
192
+ if question.previous_question:
193
+ prev_question = question.previous_question.number_and_part
194
+
195
question_data.append(
196
[
197
question.number_and_part,
@@ -200,6 +205,7 @@ def handle(
200
205
question.topic,
201
206
question.clarifications,
202
207
",".join(groups),
208
+ prev_question,
203
209
204
210
)
211
0 commit comments