X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1c281eadaa7164d9b6e76be6ae325561c0297965..031b8be3bf03baa724dd7e225b0555726d089341:/src/catalogue/admin.py diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 47032ba2d..420cd3f49 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -38,7 +38,10 @@ class BookAdmin(admin.ModelAdmin): list_filter = [ 'print_on_demand', ('wiki_link', BlankFieldListFilter), + ('parent', EmptyFieldListFilter), + ('media', admin.EmptyFieldListFilter), ] + date_hierarchy = 'created_at' search_fields = ('title',) ordering = ('title',) @@ -51,7 +54,7 @@ class FragmentAdmin(admin.ModelAdmin): class CollectionAdmin(admin.ModelAdmin): - list_display = ('title', 'listed') + list_display = ('title', 'listed', 'role') prepopulated_fields = {'slug': ('title',)}