dormitory.admin module

class dormitory.admin.DormitoryAgreementAdmin(model, admin_site)[源代码]

基类:ModelAdmin

list_display = ['user', 'sign_time']
property media
search_fields = ['user__username', 'user__name']
class dormitory.admin.DormitoryAssignmentAdmin(model, admin_site)[源代码]

基类:ModelAdmin

list_display = ['dormitory', 'user', 'bed_id', 'time']
list_filter = ['bed_id', 'time']
property media
search_fields = ['dormitory__id', 'user__username', 'user__name', 'user__pinyin', 'user__acronym', 'time']