2020-12-02 23:21:29 +00:00
|
|
|
from django.contrib import admin
|
|
|
|
|
2020-12-09 00:20:24 +00:00
|
|
|
from .models import Bookshelf, Book, BookshelfToBook
|
2020-12-02 23:21:29 +00:00
|
|
|
|
|
|
|
admin.site.register(Bookshelf)
|
|
|
|
admin.site.register(Book)
|
2020-12-20 20:05:51 +00:00
|
|
|
# admin.site.register(BookshelfToBook)
|
|
|
|
|
|
|
|
|
|
|
|
class TemplateAdmin(admin.ModelAdmin):
|
|
|
|
change_form_template = 'mgmt/templates/bookshelves.html'
|
|
|
|
|
|
|
|
|
|
|
|
admin.site.register(BookshelfToBook, TemplateAdmin)
|