Skip to content

Commit

Permalink
feat: Add user ID to django admin panel (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
knipec authored Jan 2, 2025
1 parent 33b14fc commit 59d0942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraso_backend/apps/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 59d0942

Please sign in to comment.