1
0
forked from ScoDoc/ScoDoc

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

View File

@ -419,7 +419,7 @@ def formsemestre_order_partitions(formsemestre_id: int):
[ [
partition.to_dict() partition.to_dict()
for partition in formsemestre.partitions.order_by(Partition.numero) for partition in formsemestre.partitions.order_by(Partition.numero)
if partition["partition_name"] is not None if partition.partition_name is not None
] ]
) )