From bcee56d2381c33db647171eae17aecd46c5adfa7 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 23 Apr 2013 15:40:32 +0000 Subject: [PATCH] Tweaked group/admin.py to show some additional group and group event columns when listing entries. - Legacy-Id: 5685 --- ietf/group/admin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ietf/group/admin.py b/ietf/group/admin.py index 6e58a0e00..2af54013c 100644 --- a/ietf/group/admin.py +++ b/ietf/group/admin.py @@ -21,9 +21,9 @@ class GroupURLInline(admin.TabularInline): model = GroupURL class GroupAdmin(admin.ModelAdmin): - list_display = ["acronym", "name", "type", "role_list"] + list_display = ["acronym", "name", "type", "state", "time", "role_list"] list_display_links = ["acronym", "name"] - list_filter = ["type"] + list_filter = ["type", "state", "time"] search_fields = ["acronym", "name"] ordering = ["name"] raw_id_fields = ["charter", "parent", "ad"] @@ -139,6 +139,7 @@ admin.site.register(GroupEvent, GroupEventAdmin) class ChangeStateGroupEventAdmin(admin.ModelAdmin): list_display = ["id", "group", "state", "time", "type", "by", ] + list_filter = ["state", "time", ] search_fields = ["group__name", "group__acronym"] admin.site.register(ChangeStateGroupEvent, ChangeStateGroupEventAdmin)