Skip to content

Commit bcee56d

Browse files
committed
Tweaked group/admin.py to show some additional group and group event columns
when listing entries. - Legacy-Id: 5685
1 parent e96cf00 commit bcee56d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/group/admin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class GroupURLInline(admin.TabularInline):
2121
model = GroupURL
2222

2323
class GroupAdmin(admin.ModelAdmin):
24-
list_display = ["acronym", "name", "type", "role_list"]
24+
list_display = ["acronym", "name", "type", "state", "time", "role_list"]
2525
list_display_links = ["acronym", "name"]
26-
list_filter = ["type"]
26+
list_filter = ["type", "state", "time"]
2727
search_fields = ["acronym", "name"]
2828
ordering = ["name"]
2929
raw_id_fields = ["charter", "parent", "ad"]
@@ -139,6 +139,7 @@ class GroupEventAdmin(admin.ModelAdmin):
139139

140140
class ChangeStateGroupEventAdmin(admin.ModelAdmin):
141141
list_display = ["id", "group", "state", "time", "type", "by", ]
142+
list_filter = ["state", "time", ]
142143
search_fields = ["group__name", "group__acronym"]
143144
admin.site.register(ChangeStateGroupEvent, ChangeStateGroupEventAdmin)
144145

0 commit comments

Comments
 (0)