@@ -0,0 +1,21 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import ContentInteraction, ContentItem, VideoProgress
|
||||
|
||||
|
||||
@admin.register(ContentItem)
|
||||
class ContentItemAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
"title",
|
||||
"kind",
|
||||
"ability_dimension",
|
||||
"discipline",
|
||||
"duration_seconds",
|
||||
"is_published",
|
||||
)
|
||||
list_filter = ("kind", "ability_dimension", "discipline", "is_published")
|
||||
search_fields = ("title", "summary", "body")
|
||||
|
||||
|
||||
admin.site.register(ContentInteraction)
|
||||
admin.site.register(VideoProgress)
|
||||
Reference in New Issue
Block a user