From 59d094267f44855960988a18bba881b366079e8c Mon Sep 17 00:00:00 2001 From: Carissa Knipe Date: Thu, 2 Jan 2025 11:15:20 -0800 Subject: [PATCH] feat: Add user ID to django admin panel (#1610) --- terraso_backend/apps/core/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terraso_backend/apps/core/admin.py b/terraso_backend/apps/core/admin.py index 2adb7f079..56a86a2e3 100644 --- a/terraso_backend/apps/core/admin.py +++ b/terraso_backend/apps/core/admin.py @@ -63,8 +63,9 @@ class UserAdmin(DjangoUserAdmin): list_display = ("email", "first_name", "last_name", "created_at", "is_staff") search_fields = ("email", "first_name", "last_name") inlines = [UserPreferenceInline] + readonly_fields = ["id"] fieldsets = ( - (None, {"fields": ("email", "password")}), + (None, {"fields": ("email", "id", "password")}), ("Personal info", {"fields": ("first_name", "last_name")}), ( "Permissions",