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:
Adrian Holovaty 2005-07-19 15:24:03 +00:00
parent b617884ced
commit 5797066383
3 changed files with 28 additions and 16 deletions

View file

@ -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