Modified books to book

parent 88f317eb
from django.contrib import admin
from .models import Author, Books
from .models import Author, Book
class AuthorAdmin(admin.ModelAdmin):
model = Author
......@@ -14,4 +14,4 @@ class BooksAdmin(admin.ModelAdmin):
list_filter = ['title', 'author', 'year_published',]
admin.site.register(Author, AuthorAdmin)
admin.site.register(Books, BooksAdmin)
\ No newline at end of file
admin.site.register(Book, 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