X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bad8c938b9e545cd4360204e6fd0459b83718c13..739f55be14e161e485b2107b628689c4f01ded6b:/src/catalogue/admin.py?ds=sidebyside diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 4f30b2432..2866fcc12 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -40,6 +40,7 @@ class BookAdmin(admin.ModelAdmin): ('wiki_link', BlankFieldListFilter), ('parent', EmptyFieldListFilter), ] + date_hierarchy = 'created_at' search_fields = ('title',) ordering = ('title',) @@ -52,7 +53,7 @@ class FragmentAdmin(admin.ModelAdmin): class CollectionAdmin(admin.ModelAdmin): - list_display = ('title', 'listed') + list_display = ('title', 'listed', 'role') prepopulated_fields = {'slug': ('title',)}