added search fields in BookAdmin

parent 7935cdce
...@@ -13,6 +13,8 @@ class AuthorAdmin(admin.ModelAdmin): ...@@ -13,6 +13,8 @@ class AuthorAdmin(admin.ModelAdmin):
class BookAdmin(admin.ModelAdmin): class BookAdmin(admin.ModelAdmin):
model = Book model = Book
list_display = ("title", "author", "publisher", "year_published", "ISBN", "blurb",) list_display = ("title", "author", "publisher", "year_published", "ISBN", "blurb",)
search_fields = ("title", "author", "ISBN",)
admin.site.register(Author, AuthorAdmin) admin.site.register(Author, AuthorAdmin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment