mirror of
https://github.com/django/django.git
synced 2025-10-06 08:40:42 +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:
parent
b617884ced
commit
5797066383
3 changed files with 28 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue