Skip to content

Commit

Permalink
backend: book admin updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rkshaon committed Sep 6, 2024
1 parent 1818e9b commit 011342c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion backend/book_api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
@admin.register(Book)
class BookAdmin(admin.ModelAdmin):
list_display = [
'title', 'edition', 'isbn',
'id', 'title', 'edition', 'isbn',
'published_date', 'language',
'is_deleted',
]
list_display_links = [
'title',
]
list_filter = [
'authors', 'publisher',
]
search_fields = [
'title', 'edition', 'isbn',
'published_date', 'language',
'description',
]
readonly_fields = ['id',]
Binary file modified backend/db.sqlite3
Binary file not shown.

0 comments on commit 011342c

Please sign in to comment.