12345678910111213141516171819202122 |
- from django.contrib import admin
-
- from .models import FolderInfo, FolderPart, JustifiedKey, FolderPart_Name
-
- admin.site.register(FolderInfo)
- admin.site.register(FolderPart)
- admin.site.register(FolderPart_Name)
- admin.site.register(JustifiedKey)
-
- #@admin.register(BookInstance)
- #class BookInstanceAdmin(admin.ModelAdmin):
- # list_display = ('book', 'status', 'borrower', 'due_back', 'id')
- # list_filter = ('status', 'due_back')#
- #
- # fieldsets = (
- # (None, {
- # 'fields': ('book','imprint', 'id')
- # }),
- # ('Availability', {
- # 'fields': ('status', 'due_back','borrower')
- # }),
- # )
|