Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #198 -- istartswith and iendswith weren't working properly. Tha…

…nks, brantley

git-svn-id: http://code.djangoproject.com/svn/django/trunk@321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5a3da949fa6825fd4f66becc3930272ea9432f69 1 parent 8a86e77
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/meta.py
View
4 django/core/meta.py
@@ -1645,9 +1645,9 @@ def get_db_prep_lookup(self, lookup_type, value):
return ["%%%s%%" % prep_for_like_query(value)]
elif lookup_type == 'iexact':
return [prep_for_like_query(value)]
- elif lookup_type == 'startswith':
+ elif lookup_type in ('startswith', 'istartswith'):
return ["%s%%" % prep_for_like_query(value)]
- elif lookup_type == 'endswith':
+ elif lookup_type in ('endswith', 'iendswith'):
return ["%%%s" % prep_for_like_query(value)]
elif lookup_type == 'isnull':
return []

0 comments on commit 5a3da94

Please sign in to comment.
Something went wrong with that request. Please try again.