Commit 15fc192c authored by Eury See's avatar Eury See

Customized the admin panel to display a list view.

parent 217eaf80
......@@ -3,9 +3,11 @@ from .models import Author, Books
class AuthorAdmin(admin.ModelAdmin):
model = Author
list_display = ("first_name", "last_name", "age", "nationality", "bio",)
class BooksAdmin(admin.ModelAdmin):
model = Books
list_display = ("title", "author", "publisher","year_published", "ISBN", "blurb")
admin.site.register(Author, AuthorAdmin)
admin.site.register(Books, BooksAdmin)
\ No newline at end of file
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