|
1 | 1 | from django.contrib import admin |
2 | 2 |
|
3 | 3 | from ietf.meeting.models import (Meeting, Room, Session, TimeSlot, Constraint, Schedule, |
4 | | - SchedTimeSessAssignment, ResourceAssociation, FloorPlan, UrlResource) |
| 4 | + SchedTimeSessAssignment, ResourceAssociation, FloorPlan, UrlResource, |
| 5 | + SessionPresentation) |
5 | 6 |
|
6 | 7 |
|
7 | 8 | class UrlResourceAdmin(admin.ModelAdmin): |
@@ -118,3 +119,9 @@ class FloorPlanAdmin(admin.ModelAdmin): |
118 | 119 | list_display = ['id', 'meeting', 'name', 'order', 'image', ] |
119 | 120 | raw_id_fields = ['meeting', ] |
120 | 121 | admin.site.register(FloorPlan, FloorPlanAdmin) |
| 122 | + |
| 123 | +class SessionPresentationAdmin(admin.ModelAdmin): |
| 124 | + list_display = ['id', 'session', 'document', 'rev', 'order', ] |
| 125 | + list_filter = ['session__meeting', 'document__group__acronym', ] |
| 126 | + raw_id_fields = ['document', 'session', ] |
| 127 | +admin.site.register(SessionPresentation, SessionPresentationAdmin) |
0 commit comments