class ModelAdmin(BaseModelAdmin):
"""Encapsulate all admin options and functionality for a given model.""" list_display = ('__str__',)# 列表里显示想要显示的字段
list_display_links = ()# 设置哪些字段可以点击进入编辑界面
list_filter = ()
list_select_related = False
list_per_page = 100# 满100条数据就自动分页
list_max_show_all = 200
list_editable = ()
search_fields = ()
date_hierarchy = None# 详细时间分层筛选
save_as = False
save_as_continue = True
save_on_top = False
paginator = Paginator
preserve_filters = True
inlines = []