You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
504 B
23 lines
504 B
from django.contrib import admin
|
|
from ajaxdatatable.admin import AjaxDatatable
|
|
|
|
from apps.video.models import *
|
|
|
|
|
|
|
|
|
|
class VideoInCollectionInline(admin.TabularInline):
|
|
model = VideoInCollection
|
|
extra = 1
|
|
|
|
|
|
@admin.register(VideoCollection)
|
|
class VideoCollectionAdmin(AjaxDatatable):
|
|
list_display = ('title',)
|
|
inlines = [VideoInCollectionInline]
|
|
|
|
|
|
@admin.register(Video)
|
|
class VideoAdmin(AjaxDatatable):
|
|
list_display = ('title', 'video_type', 'status')
|
|
search_fields = ('title',)
|