Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
40a95567
Commit
40a95567
authored
Sep 10, 2019
by
Jelle van der Waa
🚧
Committed by
Jelle van der Waa
Sep 11, 2019
Browse files
devel: Add sorting on groups to the admin view
parent
3c38ba2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
devel/admin.py
View file @
40a95567
...
...
@@ -11,8 +11,8 @@ class UserProfileInline(admin.StackedInline):
class
UserProfileAdmin
(
UserAdmin
):
inlines
=
[
UserProfileInline
]
list_display
=
(
'username'
,
'email'
,
'first_name'
,
'last_name'
,
'is_staff'
,
'is_active'
)
list_filter
=
(
'is_staff'
,
'is_superuser'
,
'is_active'
)
list_display
=
(
'username'
,
'email'
,
'first_name'
,
'last_name'
,
'last_login'
,
'is_staff'
,
'is_active'
)
list_filter
=
(
'is_staff'
,
'is_superuser'
,
'is_active'
,
'groups'
)
class
StaffGroupAdmin
(
admin
.
ModelAdmin
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment