[Debconf-video-commits] r360 - package/branches/pycon09/src/debconfvideo/web/pyconvideo

benh at alioth.debian.org benh at alioth.debian.org
Sat Mar 21 17:17:48 UTC 2009


Author: benh
Date: 2009-03-21 17:17:48 +0000 (Sat, 21 Mar 2009)
New Revision: 360

Modified:
   package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py
Log:
Customise recording admin interface.


Modified: package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py
===================================================================
--- package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py	2009-03-21 17:15:32 UTC (rev 359)
+++ package/branches/pycon09/src/debconfvideo/web/pyconvideo/admin.py	2009-03-21 17:17:48 UTC (rev 360)
@@ -7,6 +7,13 @@
               'description']
     list_display = ['title', 'conference_room', 'start_time']
 
+class VideoRecordingAdmin(admin.ModelAdmin):
+    date_hierarchy = 'recording_time'
+    fields = ['recording_filename', 'conference_room', 'recording_time',
+              'recording_duration', 'file_status', 'comments', 'locked_by']
+    list_display = ['recording_filename', 'file_status', 'locked_by']
+    list_filter = ['file_status']
+
 class VideoTargetFileAdmin(admin.ModelAdmin):
     fields = ['event_recording', 'target_format',
               'generated_time', 'file_status', 'comments', 'locked_by',
@@ -18,7 +25,7 @@
 admin.site.register(models.ConferenceRoom)
 admin.site.register(models.Event, EventAdmin)
 admin.site.register(models.VideoFileStatus)
-admin.site.register(models.VideoRecording)
+admin.site.register(models.VideoRecording, VideoRecordingAdmin)
 admin.site.register(models.VideoEventRecording)
 admin.site.register(models.VideoTargetFormat)
 admin.site.register(models.VideoTargetFile, VideoTargetFileAdmin)




More information about the Debconf-video-commits mailing list