From a96e8aad3f6c8b93335684d1781e337a1f06d53f Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 23 Nov 2011 21:38:20 +0530 Subject: [PATCH] document subject list_editable in admin --- itf/festival/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/itf/festival/admin.py b/itf/festival/admin.py index 8495132..fe8dd7c 100755 --- a/itf/festival/admin.py +++ b/itf/festival/admin.py @@ -75,13 +75,17 @@ class VideoAdmin(admin.ModelAdmin): search_fields = ('title', 'intro',) list_filter = ['meeting', 'talk'] +class DocumentAdmin(admin.ModelAdmin): + list_display = ('__unicode__', 'subject',) + list_editable = ('subject',) + admin.site.register(Comment, CommentAdmin) admin.site.register(Meeting, MeetingAdmin) admin.site.register(Audio, AudioAdmin) admin.site.register(Video, VideoAdmin) admin.site.register(Image, ImageAdmin) admin.site.register(PadmaVideo, PadmaVideoAdmin) -admin.site.register(Document) +admin.site.register(Document, DocumentAdmin) admin.site.register(DocumentSubject) admin.site.register(Project, ProjectAdmin) #admin.site.register(MeetingDay)