less fields in user admin
This commit is contained in:
parent
3d587fb63d
commit
c35accc8ac
1 changed files with 1 additions and 5 deletions
|
|
@ -11,10 +11,7 @@ class UserAdmin(admin.ModelAdmin):
|
|||
'first_name',
|
||||
'last_name',
|
||||
'username',
|
||||
'email',
|
||||
'phone_number',
|
||||
'password',
|
||||
'otp',
|
||||
'is_staff',
|
||||
'is_superuser',
|
||||
'groups',
|
||||
|
|
@ -24,10 +21,9 @@ class UserAdmin(admin.ModelAdmin):
|
|||
'last_update',
|
||||
'otp_expire',
|
||||
'otp_try',
|
||||
'balance',
|
||||
]
|
||||
readonly_fields = ['last_update', 'uuid']
|
||||
list_display = ['pk', 'first_name', 'last_name', 'phone_number', 'date_joined', 'last_update']
|
||||
list_display = ['pk', 'date_joined', 'last_update']
|
||||
search_fields = ['pk', 'first_name', 'last_name', 'phone_number']
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue