有没有一种方法可以在管理员搜索中搜索多个术语?詹戈 [英] Is there a way to search for multiple terms in admin search? django
本文介绍了有没有一种方法可以在管理员搜索中搜索多个术语?詹戈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在django管理员搜索栏中,如果我有一个带有column = fruit_name的模型并且我想在该列中搜索所有具有fruit_name = banana或apple的实例,该实例将显示所有香蕉和苹果,我该怎么做?
In the django admin search bar if i had a model with a column = fruit_name and I wanted to search that column for all instances with either the fruit_name = banana or apple which would show all of the bananas and apples, how could I do that?
推荐答案
覆盖 查看全文