Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed stray references to (now deprecated) !__ne query type.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 08cac47ba0739d8346495a491d0d288f50a4186d 1 parent cc26eb4
Russell Keith-Magee authored July 01, 2006
1  django/db/backends/oracle/base.py
@@ -122,7 +122,6 @@ def get_pk_default_value():
122 122
     'iexact': 'LIKE %s',
123 123
     'contains': 'LIKE %s',
124 124
     'icontains': 'LIKE %s',
125  
-    'ne': '!= %s',
126 125
     'gt': '> %s',
127 126
     'gte': '>= %s',
128 127
     'lt': '< %s',
4  django/db/models/fields/__init__.py
@@ -162,7 +162,7 @@ def get_db_prep_save(self, value):
162 162
 
163 163
     def get_db_prep_lookup(self, lookup_type, value):
164 164
         "Returns field's value prepared for database lookup."
165  
-        if lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte', 'ne', 'year', 'month', 'day', 'search'):
  165
+        if lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte', 'year', 'month', 'day', 'search'):
166 166
             return [value]
167 167
         elif lookup_type in ('range', 'in'):
168 168
             return value
@@ -414,7 +414,7 @@ def to_python(self, value):
414 414
     def get_db_prep_lookup(self, lookup_type, value):
415 415
         if lookup_type == 'range':
416 416
             value = [str(v) for v in value]
417  
-        elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte', 'ne') and hasattr(value, 'strftime'):
  417
+        elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte') and hasattr(value, 'strftime'):
418 418
             value = value.strftime('%Y-%m-%d')
419 419
         else:
420 420
             value = str(value)

0 notes on commit 08cac47

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