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