diff --git a/app/api/partitions.py b/app/api/partitions.py index fcb6013c6..6b366ec54 100644 --- a/app/api/partitions.py +++ b/app/api/partitions.py @@ -417,7 +417,7 @@ def formsemestre_order_partitions(formsemestre_id: int): db.session.commit() app.set_sco_dept(formsemestre.departement.acronym) sco_cache.invalidate_formsemestre(formsemestre_id) - return jsonify(formsemestre.to_dict()) + return jsonify(formsemestre.to_dict(convert_objects=True)) @bp.route("/partition//groups/order", methods=["POST"])