【发布时间】:2016-11-11 15:26:32
【问题描述】:
我正在使用 Haystack Django 作为搜索引擎。
SearchQuerySet().filter(**conds)
条件可能包括:
conds['name'] = Exact(name)
conds['category'] = Exact(category)
conds['city_id'] = Exact(city_id)
但除此之外,我还想添加 子类别列表 作为条件,那么有什么方法可以添加类似
的内容conds['sub_category'] = list(city_id)
【问题讨论】:
标签: python django django-haystack