Merge pull request 'replace ["partition_name"] by .partition_name' (#467) from jmplace/ScoDoc-Lille:fix_order_partition_not_subscritable into master

Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/467
This commit is contained in:
Emmanuel Viennet 2022-08-02 16:37:17 +02:00
commit 90811fdc0e

View File

@ -420,7 +420,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
] ]
) )