From 93ea9be5a1a6882d2a30319a7f0a31c76c46e3cd Mon Sep 17 00:00:00 2001 From: wlorenzetti Date: Thu, 14 Sep 2023 12:42:01 +0200 Subject: [PATCH] Add is_active management. --- g3w-admin/usersmanage/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g3w-admin/usersmanage/forms.py b/g3w-admin/usersmanage/forms.py index a5e45b701..30375de3c 100644 --- a/g3w-admin/usersmanage/forms.py +++ b/g3w-admin/usersmanage/forms.py @@ -454,7 +454,7 @@ def __init__(self, *args, **kwargs): def __authrole_fields(self): """ Get fields for ACL box if they are into self.fields """ - fields = [] + fields = ['is_active'] if 'is_superuser' in self.fields: fields.append( Field('is_superuser', **{'data_icheck_skin': 'yellow'}) @@ -660,6 +660,7 @@ class Meta(UserCreationForm.Meta): 'username', 'password1', 'password2', + 'is_active', 'is_superuser', 'is_staff', 'groups',