MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / Not

Class Not

haystack/inputs.py:82–91  ·  view source on GitHub ↗

An input type for negating a query.

Source from the content-addressed store, hash-verified

80
81
82class Not(Clean):
83 """
84 An input type for negating a query.
85 """
86
87 input_type_name = "not"
88
89 def prepare(self, query_obj):
90 query_string = super().prepare(query_obj)
91 return query_obj.build_not_query(query_string)
92
93
94class AutoQuery(BaseInput):

Callers 1

prepareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected