Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored July 26, 2005

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/core/meta.py
4  django/core/meta.py
@@ -1645,9 +1645,9 @@ def get_db_prep_lookup(self, lookup_type, value):
1645 1645
             return ["%%%s%%" % prep_for_like_query(value)]
1646 1646
         elif lookup_type == 'iexact':
1647 1647
             return [prep_for_like_query(value)]
1648  
-        elif lookup_type == 'startswith':
  1648
+        elif lookup_type in ('startswith', 'istartswith'):
1649 1649
             return ["%s%%" % prep_for_like_query(value)]
1650  
-        elif lookup_type == 'endswith':
  1650
+        elif lookup_type in ('endswith', 'iendswith'):
1651 1651
             return ["%%%s" % prep_for_like_query(value)]
1652 1652
         elif lookup_type == 'isnull':
1653 1653
             return []

0 notes on commit 5a3da94

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