Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
Showing only changes of commit 190f1de974 - Show all commits

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",