Skip to content

Commit

Permalink
Add is_active management.
Browse files Browse the repository at this point in the history
  • Loading branch information
wlorenzetti committed Sep 14, 2023
1 parent 2897360 commit 93ea9be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion g3w-admin/usersmanage/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
Expand Down Expand Up @@ -660,6 +660,7 @@ class Meta(UserCreationForm.Meta):
'username',
'password1',
'password2',
'is_active',
'is_superuser',
'is_staff',
'groups',
Expand Down

0 comments on commit 93ea9be

Please sign in to comment.