14 lines
339 B
Python
14 lines
339 B
Python
from django.contrib import admin
|
|
|
|
from .models import Bookshelf, Book, BookshelfToBook
|
|
|
|
admin.site.register(Bookshelf)
|
|
admin.site.register(Book)
|
|
# admin.site.register(BookshelfToBook)
|
|
|
|
|
|
class TemplateAdmin(admin.ModelAdmin):
|
|
change_form_template = 'mgmt/templates/bookshelves.html'
|
|
|
|
|
|
admin.site.register(BookshelfToBook, TemplateAdmin) |