1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed unnecessary SearchQuery._combine().

Unnecessary since its introduction in 2d877da855.
This commit is contained in:
Baptiste Mispelon 2020-03-13 11:21:12 +01:00 committed by Mariusz Felisiak
parent 40a64dd1e2
commit b62c58d5fc

View File

@ -193,11 +193,6 @@ class SearchQuery(SearchQueryCombinable, Value):
template = '!!({})'.format(template)
return template, params
def _combine(self, other, connector, reversed):
combined = super()._combine(other, connector, reversed)
combined.output_field = SearchQueryField()
return combined
def __invert__(self):
return type(self)(self.value, config=self.config, invert=not self.invert)