apps: do not remove ou field from agent's users edit's views
This commit is contained in:
parent
078f1e5f4e
commit
1b333c1f8b
|
@ -141,7 +141,8 @@ class AppConfig(django.apps.AppConfig):
|
|||
'last_name',
|
||||
'email',
|
||||
'is_superuser',
|
||||
'generate_password']:
|
||||
'generate_password',
|
||||
'ou']:
|
||||
del form.fields[field_name]
|
||||
form.fields['email'].required = True
|
||||
# do not allow to move an agent in the usagers OU
|
||||
|
|
Loading…
Reference in New Issue