Django Haystack-在自定义字段上搜索

时间:2018-08-03 15:37:01

标签: django django-haystack

我有一个包含许多CharField的模型,其中包含选项选项,例如           MULTIPLE_BUSINESS_TYPE_ACTIVE = "MULTIBUS" FACILITY_SUSPENDED_OR_REVOKED_OR_OOB = "LOCKEDFAC" LOCKED_STATUS_CHOICES = ( (MULTIPLE_BUSINESS_TYPE_ACTIVE, "The facility was found to " "be active for multiple business types"), (FACILITY_SUSPENDED_OR_REVOKED_OR_OOB, "The facility was found to be revoked, suspended ") )

因此,当用户键入

  

多种业务类型

我应该获得所有锁定状态为MULTIBUS的结果

这可能吗?

0 个答案:

没有答案