user admin view
This commit is contained in:
parent
84415f8d92
commit
aff7785e7e
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,8 @@ class UserAdmin(admin.ModelAdmin):
|
||||||
'balance',
|
'balance',
|
||||||
]
|
]
|
||||||
readonly_fields = ['last_update', 'uuid']
|
readonly_fields = ['last_update', 'uuid']
|
||||||
|
list_display = ['pk', 'first_name', 'last_name', 'phone_number']
|
||||||
|
search_fields = ['pk', 'first_name', 'last_name', 'phone_number']
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(User, UserAdmin)
|
admin.site.register(User, UserAdmin)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue