diff options
| author | Simon Charette <charette.s@gmail.com> | 2020-02-24 23:10:50 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-02-26 07:51:19 +0100 |
| commit | 3d62ddb02695cfafc847951b45e6e1ec5dc0b149 (patch) | |
| tree | 81ffafdade4038aa00aebc1cd9649e7f17339a12 | |
| parent | 5b09354954348f1a56df32b2d7dbe074a23a4532 (diff) | |
Refs #3254 -- Removed unnecessary truth check in SearchVectorExact.as_sql().
Direct usage of the @@ operator is perfectly allowed.
| -rw-r--r-- | django/contrib/postgres/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/search.py b/django/contrib/postgres/search.py index 2786251548..dceda6c8da 100644 --- a/django/contrib/postgres/search.py +++ b/django/contrib/postgres/search.py @@ -19,7 +19,7 @@ class SearchVectorExact(Lookup): lhs, lhs_params = self.process_lhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, connection) params = lhs_params + rhs_params - return '%s @@ %s = true' % (lhs, rhs), params + return '%s @@ %s' % (lhs, rhs), params class SearchVectorField(Field): |
