X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/eee35e00bf0d0eb3d2a9f08f72c7052962fecbf6..d91f22f8be9768ba873bbfb58bcfd26fc60ca9e1:/src/archive/admin.py diff --git a/src/archive/admin.py b/src/archive/admin.py index d0804be..577a0ae 100644 --- a/src/archive/admin.py +++ b/src/archive/admin.py @@ -1,5 +1,13 @@ -from archive.models import Project, Audiobook +from archive.models import Project, Audiobook, Piece, License from django.contrib import admin admin.site.register(Project) -admin.site.register(Audiobook) + + +class AudiobookAdmin(admin.ModelAdmin): + list_filter = ['license'] + + +admin.site.register(Audiobook, AudiobookAdmin) +admin.site.register(Piece) +admin.site.register(License)