X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/23994f414001d00c7e1dcad37a33cd7379d510e1..811a5e0c009907cba39afcd954b3644f46adcec7:/src/archive/admin.py?ds=inline diff --git a/src/archive/admin.py b/src/archive/admin.py index 577a0ae..10f1a33 100644 --- a/src/archive/admin.py +++ b/src/archive/admin.py @@ -1,13 +1,16 @@ -from archive.models import Project, Audiobook, Piece, License +from archive.models import Project, Audiobook, License from django.contrib import admin admin.site.register(Project) class AudiobookAdmin(admin.ModelAdmin): - list_filter = ['license'] + list_display = ["title", "slug", "index", "part_name", "duration", "license", "youtube_volume"] + list_filter = ["license"] + search_fields = ["title", "slug", "part_name", "youtube_volume"] + list_editable = ["youtube_volume"] + readonly_fields = ['duration'] admin.site.register(Audiobook, AudiobookAdmin) -admin.site.register(Piece) admin.site.register(License)