diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/db/backends/mysql.py | 4 | ||||
| -rw-r--r-- | django/core/db/backends/postgresql.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/django/core/db/backends/mysql.py b/django/core/db/backends/mysql.py index 817be0c19a..9e96ed692e 100644 --- a/django/core/db/backends/mysql.py +++ b/django/core/db/backends/mysql.py @@ -99,7 +99,9 @@ OPERATOR_MAPPING = { 'lt': '<', 'lte': '<=', 'startswith': 'LIKE', - 'endswith': 'LIKE' + 'endswith': 'LIKE', + 'istartswith': 'ILIKE', + 'iendswith': 'ILIKE', } # This dictionary maps Field objects to their associated MySQL column diff --git a/django/core/db/backends/postgresql.py b/django/core/db/backends/postgresql.py index 8a629453b3..8f82e1b23f 100644 --- a/django/core/db/backends/postgresql.py +++ b/django/core/db/backends/postgresql.py @@ -93,7 +93,9 @@ OPERATOR_MAPPING = { 'lt': '<', 'lte': '<=', 'startswith': 'LIKE', - 'endswith': 'LIKE' + 'endswith': 'LIKE', + 'istartswith': 'ILIKE', + 'iendswith': 'ILIKE', } # This dictionary maps Field objects to their associated PostgreSQL column |
