4Django快速开发-候选人列表的筛选和查询
search_fields:设置搜索字段
list_filter:过滤筛选字段
ordering:排序
1在应用的admin.py里添加搜索过滤和排序属性:
#查询字段: search_fields = ('username','phone','email','bachelor_school',) #筛选条件 list_filter = ('city','first_result','second_result','hr_result','first_interviewer','second_interviewer','hr_interviewer') #需要排序的字段 ordering = ('hr_result','second_result','first_result')