class DemoAdmin(admin.ModelAdmin):
def queryset(self, request):
qs = super(DemoAdmin, self).queryset(request)
return qs
list_display = ('ColName1','ColName2','ColName3')
list_per_page = 20
search_fields = ['ColName2'] #查询的条件
list_filter = ('ColName3', ) #过滤器
date_hierarchy = 'ColName1' #时间列表