onlyhold
在adminx.py文件定义的类里面添加这三个字段
list_display = [\'code\',\'email\',\'send_type\',\'send_time\'] #显示的字段类型
search_fields = [\'code\',\'email\',\'send_type\'] #搜索的字段(所有字段一起搜索)
list_filter = [\'code\',\'email\',\'send_type\',\'send_time\'] #搜索字段(单个字段搜索)和时间

分类:

技术点:

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-02-07
  • 2022-02-24
  • 2022-01-16
  • 2021-09-28
猜你喜欢
  • 2021-06-21
  • 2021-10-20
  • 2022-12-23
  • 2021-09-30
  • 2021-12-22
相关资源
相似解决方案