From 8501944b4077b8349cb0c843cbc6ecf8f5779f79 Mon Sep 17 00:00:00 2001 From: phzhik Date: Mon, 27 May 2024 01:54:00 +0400 Subject: [PATCH] * UserAdmin tweaks --- account/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account/admin.py b/account/admin.py index 0ff8bd5..0e6ae82 100644 --- a/account/admin.py +++ b/account/admin.py @@ -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()