1
0
forked from ScoDoc/ScoDoc

Titre par défaut formsemestre: utilise acronyme formation

This commit is contained in:
Emmanuel Viennet 2024-07-19 10:11:02 +02:00
parent 24ccd8f9f7
commit d5580c7f9f
3 changed files with 5 additions and 5 deletions

View File

@ -186,7 +186,7 @@ def formation_edit(formation_id=None, create=False):
"acronyme",
{
"size": 12,
"explanation": "identifiant de la formation (par ex. DUT R&T)",
"explanation": "identifiant de la formation (par ex. BUT R&T)",
"allow_null": False,
},
),
@ -194,7 +194,7 @@ def formation_edit(formation_id=None, create=False):
"titre",
{
"size": 80,
"explanation": "nom complet de la formation (ex: DUT Réseaux et Télécommunications",
"explanation": "nom de la formation (ex: BUT Réseaux et Télécommunications)",
"allow_null": False,
},
),

View File

@ -63,7 +63,6 @@ from app.scodoc.sco_permissions import Permission
from app.scodoc.sco_vdi import ApoEtapeVDI
from app.scodoc import html_sco_header
from app.scodoc import codes_cursus
from app.scodoc import sco_compute_moy
from app.scodoc import sco_edit_module
from app.scodoc import sco_formsemestre
from app.scodoc import sco_groups_copy
@ -77,7 +76,7 @@ from app.scodoc import sco_users
def _default_sem_title(formation):
"""Default title for a semestre in formation"""
return formation.titre
return formation.acronyme
def formsemestre_createwithmodules():

View File

@ -188,7 +188,8 @@ def get_inscrits_etape(
break
if not doc:
raise ScoValueError(
f"pas de réponse du portail ! <br>(timeout={portal_timeout}, requête: <tt>{req}</tt>)"
f"pas de réponse du portail ! <br>(timeout={portal_timeout}, requête: <tt>{req}</tt>)",
safe=True,
)
etuds = _normalize_apo_fields(xml_to_list_of_dicts(doc, req=req))