diff --git a/app/forms/main/create_dept.py b/app/forms/main/create_dept.py index d1e143bed..cd0534057 100644 --- a/app/forms/main/create_dept.py +++ b/app/forms/main/create_dept.py @@ -54,6 +54,7 @@ class CreateDeptForm(FlaskForm): validators.DataRequired("acronyme du département requis"), ], ) + # description = StringField(label="Description") visible = BooleanField( "Visible sur page d'accueil", default=True, diff --git a/app/models/departements.py b/app/models/departements.py index d83ccfc2d..1e6b5a1f1 100644 --- a/app/models/departements.py +++ b/app/models/departements.py @@ -12,8 +12,10 @@ class Departement(db.Model): """Un département ScoDoc""" id = db.Column(db.Integer, primary_key=True) - acronym = db.Column(db.String(SHORT_STR_LEN), nullable=False, index=True) - description = db.Column(db.Text()) + acronym = db.Column( + db.String(SHORT_STR_LEN), nullable=False, index=True + ) # ne change jamais, voir la pref. DeptName + description = db.Column(db.Text()) # pas utilisé par ScoDoc : voir DeptFullName date_creation = db.Column(db.DateTime(timezone=True), server_default=db.func.now()) visible = db.Column( db.Boolean(), nullable=False, default=True, server_default="true" diff --git a/app/templates/scodoc.html b/app/templates/scodoc.html index 23667c24f..d5e453009 100644 --- a/app/templates/scodoc.html +++ b/app/templates/scodoc.html @@ -16,7 +16,9 @@