From ee93cf1e9bd7e4dde6a70db82bca52b87a4fbcb3 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 27 Jul 2022 16:19:38 +0200 Subject: [PATCH] Fix: API partitions/order --- app/api/partitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"])