Web bookshelf first draft

This commit is contained in:
2023-10-02 22:58:15 +02:00
parent 3f905877e7
commit 996ddd67ea
6 changed files with 137 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ class BookAdmin(SortableAdminBase, admin.ModelAdmin):
"get_authors",
"get_publisher",
"publication_year",
"numbers_of_pages"
"number_of_pages"
)
search_fields = ("title", "publisher__name", "authors__last_name")
list_filter = ("publisher__name", "authors")