Tri responsable formsemestre par nom.
This commit is contained in:
parent
673179c8f7
commit
306edaf63d
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user