summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/db/models/sql/where.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py
index 43e8d83658..59607d5534 100644
--- a/django/db/models/sql/where.py
+++ b/django/db/models/sql/where.py
@@ -137,7 +137,7 @@ class WhereNode(tree.Node):
elif lookup_type == 'isnull':
return ('%s IS %sNULL' % (field_sql, (not value and 'NOT ' or '')),
params)
- elif lookup_type in 'search':
+ elif lookup_type == 'search':
return (connection.ops.fulltext_search_sql(field_sql), params)
elif lookup_type in ('regex', 'iregex'):
return connection.ops.regex_lookup % (field_sql, cast_sql), params