Django xadmin开启搜索功能的实现
时间:2020-11-21 14:53:09|栏目:Python代码|点击: 次
应用目录下adminx.py
class EmailVerifyRecordAdmin(object): search_fields = ['code','email','send_type']
过滤器搜索
class EmailVerifyRecordAdmin(object): list_filter = ['code','email','send_type','send_time']