Commit 249791f0 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

completed admin setup

parent 6781f819
from django.contrib import admin
# Register your models here.
from.models import Author, Books
class AuthorAdmin(admin.ModelAdmin):
model = Author
class BooksAdmin(admin.ModelAdmin):
model = Books
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