diff --git a/app/api/partitions.py b/app/api/partitions.py index 1dac1b8b5d..25252df31f 100644 --- a/app/api/partitions.py +++ b/app/api/partitions.py @@ -419,7 +419,7 @@ def formsemestre_order_partitions(formsemestre_id: int): [ partition.to_dict() for partition in formsemestre.partitions.order_by(Partition.numero) - if partition["partition_name"] is not None + if partition.partition_name is not None ] )