Tri responsable formsemestre par nom.

This commit is contained in:
Emmanuel Viennet 2023-09-11 17:58:12 +02:00
parent 638ff758cd
commit 190f1de974

View File

@ -18,6 +18,7 @@ from flask_login import current_user
from flask import flash, g, url_for from flask import flash, g, url_for
from sqlalchemy.sql import text from sqlalchemy.sql import text
from sqlalchemy import func
import app.scodoc.sco_utils as scu import app.scodoc.sco_utils as scu
from app import db, log from app import db, log
@ -138,6 +139,7 @@ class FormSemestre(db.Model):
secondary="notes_formsemestre_responsables", secondary="notes_formsemestre_responsables",
lazy=True, lazy=True,
backref=db.backref("formsemestres", lazy=True), backref=db.backref("formsemestres", lazy=True),
order_by=func.upper(User.nom),
) )
partitions = db.relationship( partitions = db.relationship(
"Partition", "Partition",