* UserAdmin tweaks
This commit is contained in:
parent
ccae8c2554
commit
a3be30ab4c
|
|
@ -5,7 +5,8 @@ from .models import User
|
|||
|
||||
@admin.register(User)
|
||||
class UserAdmin(admin.ModelAdmin):
|
||||
list_display = ('email', 'role', 'full_name', 'phone', 'telegram', 'balance')
|
||||
list_display = ('id', 'email', 'role', 'full_name', 'phone', 'telegram', 'balance')
|
||||
list_display_links = list_display
|
||||
|
||||
def get_queryset(self, request):
|
||||
return User.objects.with_base_related()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user