Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

queryset-refactor: Fixed some missing imports from [7470]. Thanks, Ju…

…stin Bronn.

git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4a5c5c78f2ecd4ed8859cd5ac773ff3a01bccf96 1 parent 177f7d5
Malcolm Tredinnick authored April 27, 2008

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

  1. 4  django/db/backends/oracle/query.py
4  django/db/backends/oracle/query.py
@@ -26,8 +26,6 @@ def query_class(QueryClass, Database):
26 26
 
27 27
     class OracleQuery(QueryClass):
28 28
         def resolve_columns(self, row, fields=()):
29  
-            from django.db.models.fields import DateField, DateTimeField, \
30  
-                 TimeField, BooleanField, NullBooleanField, DecimalField, Field
31 29
             index_start = len(self.extra_select.keys())
32 30
             values = [self.convert_values(v, None) for v in row[:index_start]]
33 31
             for value, field in map(None, row[index_start:], fields):
@@ -35,6 +33,8 @@ def resolve_columns(self, row, fields=()):
35 33
             return values
36 34
 
37 35
         def convert_values(self, value, field):
  36
+            from django.db.models.fields import DateField, DateTimeField, \
  37
+                 TimeField, BooleanField, NullBooleanField, DecimalField, Field
38 38
             if isinstance(value, Database.LOB):
39 39
                 value = value.read()
40 40
             # Oracle stores empty strings as null. We need to undo this in

0 notes on commit 4a5c5c7

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