Skip to content

Commit 0570e0e

Browse files
committed
Feat: show object id of users and property in admin panel
1 parent 0bdca78 commit 0570e0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

realtoric/core/admin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@admin.register(Property)
77
class PropertyAdmin(admin.ModelAdmin):
8-
list_display = ("name", "type", "sale_status", "user", "created", "modified")
8+
list_display = ("id", "name", "type", "sale_status", "user", "created", "modified")
99
list_filter = ("type", "sale_status", "created", "modified")
1010
search_fields = ("name", "type", "sale_status", "created", "modified")
1111
date_hierarchy = "created"

realtoric/users/admin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ class UserAdmin(auth_admin.UserAdmin):
3030
),
3131
(_("Important dates"), {"fields": ("last_login", "date_joined")}),
3232
)
33-
list_display = ["username", "name", "is_superuser"]
33+
list_display = ["id", "username", "name", "is_superuser"]
3434
search_fields = ["name"]

0 commit comments

Comments
 (0)