Skip to content

Commit 83cab39

Browse files
committed
Added a RoomAdmin to the admin site.
- Legacy-Id: 6369
1 parent 70bfcfe commit 83cab39

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ietf/meeting/admin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
from ietf.meeting.models import *
44

5+
class RoomAdmin(admin.ModelAdmin):
6+
list_display = ["id", "meeting", "name", "capacity", ]
7+
list_filter = ["meeting"]
8+
ordering = ["-meeting"]
9+
10+
admin.site.register(Room, RoomAdmin)
11+
512
class RoomInline(admin.TabularInline):
613
model = Room
714

0 commit comments

Comments
 (0)