1
0
forked from ScoDoc/ScoDoc

new users default dept in form

This commit is contained in:
Emmanuel Viennet 2022-01-05 01:04:07 +01:00
parent 4b63fe81e4
commit ff948cb98d

View File

@ -388,6 +388,9 @@ def create_user_form(user_name=None, edit=0, all_roles=1):
"explanation": """département de rattachement de l'utilisateur""",
"labels": selectable_dept_acronyms,
"allowed_values": selectable_dept_acronyms,
"default": g.scodoc_dept
if g.scodoc_dept in selectable_dept_acronyms
else "",
},
)
)