replace ["partition_name"] by .partition_name

This commit is contained in:
Jean-Marie PLACE 2022-08-02 16:32:31 +02:00
parent 4a3ceb291a
commit b0ebdf2fb9
1 changed files with 1 additions and 1 deletions

View File

@ -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
]
)