padma video inline for participant
This commit is contained in:
parent
f6e599f824
commit
6515d17ae8
|
@ -43,10 +43,11 @@ class MeetingDayInline(admin.StackedInline):
|
||||||
extra = 3
|
extra = 3
|
||||||
|
|
||||||
class ParticipantInline(admin.StackedInline):
|
class ParticipantInline(admin.StackedInline):
|
||||||
inlines = [PadmaVideoInline]
|
|
||||||
model = Participant
|
model = Participant
|
||||||
extra = 3
|
extra = 3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MeetingAdmin(admin.ModelAdmin):
|
class MeetingAdmin(admin.ModelAdmin):
|
||||||
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
|
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
|
||||||
inlines = [MeetingDayInline, ImageInline, DocumentInline, ParticipantInline, MeetingSponsorInline]
|
inlines = [MeetingDayInline, ImageInline, DocumentInline, ParticipantInline, MeetingSponsorInline]
|
||||||
|
@ -72,6 +73,7 @@ class SessionAdmin(admin.ModelAdmin):
|
||||||
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
|
formfield_overrides = {models.TextField: {'widget': MarkItUpWidget}}
|
||||||
|
|
||||||
class ParticipantAdmin(admin.ModelAdmin):
|
class ParticipantAdmin(admin.ModelAdmin):
|
||||||
|
inlines = [PadmaVideoInline]
|
||||||
search_fields = ('title', 'short_bio',)
|
search_fields = ('title', 'short_bio',)
|
||||||
list_display = ('name', 'title', 'meeting',)
|
list_display = ('name', 'title', 'meeting',)
|
||||||
list_filter = ['meeting']
|
list_filter = ['meeting']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user