Modified books to book

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