X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/ad43f8a3a57a3bb73edefe7e815328676cabcdb1..refs/heads/master:/src/archive/admin.py?ds=inline diff --git a/src/archive/admin.py b/src/archive/admin.py index 94c3aaf..f9249af 100644 --- a/src/archive/admin.py +++ b/src/archive/admin.py @@ -6,7 +6,12 @@ admin.site.register(Project) class AudiobookAdmin(admin.ModelAdmin): list_display = ["title", "slug", "index", "part_name", "duration", "license", "youtube_volume"] - list_filter = ["license"] + list_filter = [ + "license", + "project", + ("mp3_published", admin.EmptyFieldListFilter), + ("youtube_published", admin.EmptyFieldListFilter), + ] search_fields = ["title", "slug", "part_name", "youtube_volume"] list_editable = ["youtube_volume"] readonly_fields = ['duration']