Skip to content

Commit

Permalink
Show active group in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Jan 17, 2024
1 parent f6d7291 commit d85b4c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adit/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ class MyUserAdmin(UserAdmin):
"last_name",
"is_staff",
)
fieldsets = UserAdmin.fieldsets + ( # type: ignore
(
"Additional stuff",
{"fields": ("phone_number", "department", "active_group")},
),
)
change_form_template = "loginas/change_form.html"


Expand Down

0 comments on commit d85b4c2

Please sign in to comment.