mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Added support for istartswith and iendswith in database API
git-svn-id: http://code.djangoproject.com/svn/django/trunk@207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user