Skip to content

Commit

Permalink
Django admin: show created_at/by for user roles
Browse files Browse the repository at this point in the history
  • Loading branch information
robines committed Nov 16, 2024
1 parent 9df3c20 commit ce7f02c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/samfundet/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce7f02c

Please sign in to comment.