Skip to content

Commit

Permalink
Override BaseUserAdmin add_fieldsets (#3829)
Browse files Browse the repository at this point in the history
  • Loading branch information
ana-cullen authored Nov 7, 2024
1 parent 5169cc8 commit 1884992
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions website/members/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,23 @@ class UserAdmin(BaseUserAdmin):
"profile__starting_year",
)

add_fieldsets = [
(
None,
{
"classes": ["wide"],
"fields": [
"username",
"first_name",
"last_name",
"email",
"password1",
"password2",
],
},
),
]

fieldsets = (
(
_("Personal"),
Expand Down

0 comments on commit 1884992

Please sign in to comment.