From 6515d17ae8e6764adb74b6596593807cc944f18c Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 24 Apr 2012 12:02:14 +0530 Subject: [PATCH] padma video inline for participant --- itf/festival/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/itf/festival/admin.py b/itf/festival/admin.py index 7a6419d..0595ded 100755 --- a/itf/festival/admin.py +++ b/itf/festival/admin.py @@ -43,10 +43,11 @@ class MeetingDayInline(admin.StackedInline): extra = 3 class ParticipantInline(admin.StackedInline): - inlines = [PadmaVideoInline] model = Participant extra = 3 + + class MeetingAdmin(admin.ModelAdmin): formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}} inlines = [MeetingDayInline, ImageInline, DocumentInline, ParticipantInline, MeetingSponsorInline] @@ -72,6 +73,7 @@ class SessionAdmin(admin.ModelAdmin): formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}} class ParticipantAdmin(admin.ModelAdmin): + inlines = [PadmaVideoInline] search_fields = ('title', 'short_bio',) list_display = ('name', 'title', 'meeting',) list_filter = ['meeting']