Skip to content
Snippets Groups Projects

Fix relation between MultipleChoiceOption and FeedbackOption

Merged Ghost User requested to merge fix/mco-feedback-rel into develop
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
+ 7
0
@@ -138,3 +138,10 @@ class Feedback(Resource):
solution.graded_at = None
db.session.commit()
# Delete mc_options associated with this feedback option
if fb.mc_option:
db.session.delete(fb.mc_option)
db.session.commit()
return dict(status=200, message=f"Feedback option with id {feedback_id} deleted."), 200
Loading