diff --git a/app/views/users.py b/app/views/users.py index 21c992fda..be824173f 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -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 "", }, ) )