diff options
author | Andrew Godwin <andrew@aeracode.org> | 2013-06-28 17:32:57 +0100 |
---|---|---|
committer | Andrew Godwin <andrew@aeracode.org> | 2013-06-28 17:32:57 +0100 |
commit | 7a47ba6f6aeca36b8b092dbafd36abb342d34d4b (patch) | |
tree | e959922f7d4d08057225459e31697f410e26df26 /django/db/backends/postgresql_psycopg2/operations.py | |
parent | e2d7e83256234251a81ad3388428f6579795a672 (diff) | |
parent | 48dd1e63bbb93479666208535a56f8c7c4aeab3a (diff) | |
download | django-7a47ba6f6aeca36b8b092dbafd36abb342d34d4b.tar.gz |
Merge remote-tracking branch 'core/master' into schema-alteration
Conflicts:
django/db/backends/__init__.py
django/db/models/fields/related.py
tests/field_deconstruction/tests.py
Diffstat (limited to 'django/db/backends/postgresql_psycopg2/operations.py')
-rw-r--r-- | django/db/backends/postgresql_psycopg2/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql_psycopg2/operations.py b/django/db/backends/postgresql_psycopg2/operations.py index f96757da8b..c5aab84693 100644 --- a/django/db/backends/postgresql_psycopg2/operations.py +++ b/django/db/backends/postgresql_psycopg2/operations.py @@ -69,7 +69,7 @@ class DatabaseOperations(BaseDatabaseOperations): # Cast text lookups to text to allow things like filter(x__contains=4) if lookup_type in ('iexact', 'contains', 'icontains', 'startswith', - 'istartswith', 'endswith', 'iendswith'): + 'istartswith', 'endswith', 'iendswith', 'regex', 'iregex'): lookup = "%s::text" # Use UPPER(x) for case-insensitive lookups; it's faster. |