From ce7f02cbdef54b0aa91a650eb192d4b6c259e4c1 Mon Sep 17 00:00:00 2001 From: robines Date: Sat, 16 Nov 2024 15:34:58 +0100 Subject: [PATCH] Django admin: show created_at/by for user roles --- backend/samfundet/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/samfundet/admin.py b/backend/samfundet/admin.py index a29e3de55..ee77f5861 100644 --- a/backend/samfundet/admin.py +++ b/backend/samfundet/admin.py @@ -171,17 +171,17 @@ class RoleAdmin(admin.ModelAdmin): @admin.register(UserOrgRole) class UserOrgRoleAdmin(admin.ModelAdmin): - list_display = ('user', 'role', 'obj') + list_display = ('user', 'role', 'obj', 'created_at', 'created_by') @admin.register(UserGangRole) class UserGangRoleAdmin(admin.ModelAdmin): - list_display = ('user', 'role', 'obj') + list_display = ('user', 'role', 'obj', 'created_at', 'created_by') @admin.register(UserGangSectionRole) class UserGangSectionRoleAdmin(admin.ModelAdmin): - list_display = ('user', 'role', 'obj') + list_display = ('user', 'role', 'obj', 'created_at', 'created_by') @admin.register(Permission)