X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d8a368e376f9f50ff0e3714ef716df548e86bd7f..4f65bba054fa88646e07b7e0138ce5786b1519e7:/src/catalogue/admin.py diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 2866fcc12..ebd14b9cb 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -2,7 +2,7 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.contrib import admin -from catalogue.models import Tag, Book, Fragment, BookMedia, Collection, Source +from catalogue.models import Tag, Book, Fragment, BookMedia, Collection, Source, Snippet from pz.admin import EmptyFieldListFilter @@ -39,6 +39,7 @@ class BookAdmin(admin.ModelAdmin): 'print_on_demand', ('wiki_link', BlankFieldListFilter), ('parent', EmptyFieldListFilter), + ('media', admin.EmptyFieldListFilter), ] date_hierarchy = 'created_at' search_fields = ('title',) @@ -66,3 +67,6 @@ admin.site.register(Book, BookAdmin) admin.site.register(Fragment, FragmentAdmin) admin.site.register(Collection, CollectionAdmin) admin.site.register(Source, SourceAdmin) + + +admin.site.register(Snippet)