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',
|
'first_name',
|
||||||
'last_name',
|
'last_name',
|
||||||
'username',
|
'username',
|
||||||
'email',
|
|
||||||
'phone_number',
|
'phone_number',
|
||||||
'password',
|
|
||||||
'otp',
|
|
||||||
'is_staff',
|
'is_staff',
|
||||||
'is_superuser',
|
'is_superuser',
|
||||||
'groups',
|
'groups',
|
||||||
|
|
@ -24,10 +21,9 @@ class UserAdmin(admin.ModelAdmin):
|
||||||
'last_update',
|
'last_update',
|
||||||
'otp_expire',
|
'otp_expire',
|
||||||
'otp_try',
|
'otp_try',
|
||||||
'balance',
|
|
||||||
]
|
]
|
||||||
readonly_fields = ['last_update', 'uuid']
|
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']
|
search_fields = ['pk', 'first_name', 'last_name', 'phone_number']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue