Skip to content

Commit

Permalink
[Admin page] Move email field to the main user creation form (#5854)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 authored Mar 16, 2023
1 parent ed567e8 commit 41fb56f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cvat/apps/iam/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ class CustomUserAdmin(UserAdmin):
'groups',)}),
(_('Important dates'), {'fields': ('last_login', 'date_joined')}),
)
add_fieldsets = (
(
None,
{
"classes": ("wide",),
"fields": ("username", "email", "password1", "password2"),
},
),
)

class CustomGroupAdmin(GroupAdmin):
fieldsets = ((None, {'fields': ('name',)}),)
Expand Down

0 comments on commit 41fb56f

Please sign in to comment.