.
This commit is contained in:
+5
-1
@@ -433,7 +433,7 @@ class Rapid(models.Model):
|
||||
|
||||
return new_answers
|
||||
|
||||
def get_question_json(self, based=True):
|
||||
def get_question_json(self, based=True, feedback=False):
|
||||
"""Returns json"""
|
||||
|
||||
# Loop through rapidimage associations
|
||||
@@ -468,6 +468,10 @@ class Rapid(models.Model):
|
||||
json["feedback_images"] = feedback_images
|
||||
json["answers"] = list(self.get_correct_unstripped_answers())
|
||||
|
||||
if feedback:
|
||||
json["feedback"] = self.feedback
|
||||
|
||||
|
||||
return json
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user