yp_library.admin module
-
class yp_library.admin.BookAdmin(model, admin_site)[源代码]
基类:ModelAdmin
-
list_display = ['identity_code', 'title', 'author', 'publisher', 'returned']
-
property media
-
search_fields = ('identity_code', 'title', 'author', 'publisher')
-
class yp_library.admin.LendRecordAdmin(model, admin_site)[源代码]
基类:ModelAdmin
-
list_display = ['id', 'reader_stu_id', 'book_name', 'lend_time', 'due_time', 'return_time', 'returned', 'status']
-
property media
-
search_fields = ('id', 'reader_id__student_id', 'book_id__title')
-
class yp_library.admin.ReaderAdmin(model, admin_site)[源代码]
基类:ModelAdmin
-
list_display = ['id', 'student_id']
-
property media
-
search_fields = ('student_id',)