1 from archive.models import Project, Audiobook, Piece, License
2 from django.contrib import admin
4 admin.site.register(Project)
7 class AudiobookAdmin(admin.ModelAdmin):
8 list_display = ["title", "slug", "index", "part_name", "license", "youtube_volume"]
9 list_filter = ["license"]
10 list_search = ["title", "slug", "part_name", "youtube_volume"]
11 list_editable = ["youtube_volume"]
14 admin.site.register(Audiobook, AudiobookAdmin)
15 admin.site.register(Piece)
16 admin.site.register(License)