Commit 7ed6d8ef authored by Agu Syquia's avatar Agu Syquia

Updated admin.py

fixed a problem with the implementation where it was implemented inside a class
parent b560c040
......@@ -15,5 +15,5 @@ class BooksAdmin(admin.ModelAdmin):
list_display = ('title', 'author', 'publisher', 'year_published', 'ISBN', 'blurb',)
list_filter = ('title', 'author', 'publisher', 'year_published')
admin.site.register(Author, AuthorAdmin)
admin.site.register(Books, BooksAdmin)
admin.site.register(Author, AuthorAdmin)
admin.site.register(Books, BooksAdmin)
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