Refs -- Removed unnecessary truth check in SearchVectorExact.as_sql().
Direct usage of the operator is perfectly allowed.
@@ -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):
