Commit e4be5538 authored by Nate Brevin A. Que's avatar Nate Brevin A. Que

Populated the 'Author' and 'Books' models.

parent c28810f6
from django.contrib import admin 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