mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-01 05:50:23 +00:00
Fixed #292 added missing default columns and filters
This commit is contained in:
parent
9b7560e720
commit
8def10b2da
1 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,12 @@ class UserSerializer(Admin2APISerializer):
|
|||
class UserAdmin2(djadmin2.ModelAdmin2):
|
||||
create_form_class = UserCreationForm
|
||||
update_form_class = UserChangeForm
|
||||
search_fields = ('username', 'groups__name')
|
||||
search_fields = ('username', 'groups__name', 'first_name', 'last_name',
|
||||
'email')
|
||||
|
||||
list_filter = ('is_staff', 'is_superuser', 'is_active', 'groups')
|
||||
list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff')
|
||||
ordering = ('username',)
|
||||
|
||||
api_serializer_class = UserSerializer
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue