Python haystack.inputs.Raw() Examples
The following are 2
code examples of haystack.inputs.Raw().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
haystack.inputs
, or try the search function
.
Example #1
Source File: filters.py From aries-vcr with Apache License 2.0 | 5 votes |
def build_name_query(self, term): SQ = self.view.query_object filter = super(CredNameFilterBuilder, self).build_name_query(term) if term and " " not in term: filter = filter | (SQ(source_id=Exact(term)) & SQ(name=Raw("*"))) return filter
Example #2
Source File: filters.py From TheOrgBook with Apache License 2.0 | 5 votes |
def build_name_query(self, term): SQ = self.view.query_object filter = super(CredNameFilterBuilder, self).build_name_query(term) if term and ' ' not in term: filter = filter | (SQ(source_id=Exact(term)) & SQ(name=Raw('*'))) return filter