Filter top-level books.
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 6 Sep 2022 11:48:55 +0000 (13:48 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 6 Sep 2022 11:48:55 +0000 (13:48 +0200)
src/catalogue/admin.py

index 47032ba..4f30b24 100644 (file)
@@ -38,6 +38,7 @@ class BookAdmin(admin.ModelAdmin):
     list_filter = [
             'print_on_demand',
             ('wiki_link', BlankFieldListFilter),
+            ('parent', EmptyFieldListFilter),
             ]
     search_fields = ('title',)
     ordering = ('title',)