Home  >  Q&A  >  body text

python - django admin 列表条件显示

就是默认点击model后就是显示全部的内容,但如果想status=1的才显示,应该怎么写?谢谢了

天蓬老师天蓬老师2741 days ago608

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-18 10:28:08

    Try list_filter

    https://docs.djangoproject.co...

    reply
    0
  • Cancelreply