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", "duration", "license", "youtube_volume"]
9 list_filter = ["license"]
10 search_fields = ["title", "slug", "part_name", "youtube_volume"]
11 list_editable = ["youtube_volume"]
12 readonly_fields = ['duration']
15 admin.site.register(Audiobook, AudiobookAdmin)
16 admin.site.register(Piece)
17 admin.site.register(License)