MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / _clone

Method _clone

haystack/query.py:626–633  ·  view source on GitHub ↗
(self, klass=None)

Source from the content-addressed store, hash-verified

624 # Utility methods.
625
626 def _clone(self, klass=None):
627 if klass is None:
628 klass = self.__class__
629
630 query = self.query._clone()
631 clone = klass(query=query)
632 clone._load_all = self._load_all
633 return clone
634
635
636class EmptySearchQuerySet(SearchQuerySet):

Callers 15

__and__Method · 0.95
__or__Method · 0.95
allMethod · 0.95
noneMethod · 0.95
excludeMethod · 0.95
filter_andMethod · 0.95
filter_orMethod · 0.95
order_byMethod · 0.95
highlightMethod · 0.95
modelsMethod · 0.95
result_classMethod · 0.95
boostMethod · 0.95

Calls

no outgoing calls

Tested by 4

test_cloneMethod · 0.36
test_cloneMethod · 0.36
test_altparser_queryMethod · 0.36
test_raw_queryMethod · 0.36