Skip to content

Commit 1af6a03

Browse files
committed
Tweak TimeSlot and Session admin pages with more filter and search fields.
- Legacy-Id: 4062
1 parent c1ef2d2 commit 1af6a03

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/meeting/admin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def location(self, instance):
2626

2727
class TimeSlotAdmin(admin.ModelAdmin):
2828
list_display = ["meeting", "type", "name", "time", "duration", "location", "session_desc"]
29+
list_filter = ["meeting", ]
2930
raw_id_fields = ["location", "session"]
3031
ordering = ["-time"]
3132

@@ -57,8 +58,9 @@ def name_lower(self, instance):
5758

5859
class SessionAdmin(admin.ModelAdmin):
5960
list_display = ["meeting", "name", "group", "attendees", "requested", "status"]
61+
list_filter = ["meeting", ]
6062
raw_id_fields = ["meeting", "group", "requested_by", "materials"]
61-
search_fields = ["name", "group"]
63+
search_fields = ["meeting__number", "name", "group__name"]
6264
ordering = ["-requested"]
6365

6466
def name_lower(self, instance):

0 commit comments

Comments
 (0)