Skip to content
Browse files

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...
1 parent 177f7d5 commit 4a5c5c78f2ecd4ed8859cd5ac773ff3a01bccf96 @malcolmt malcolmt committed Apr 27, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/db/backends/oracle/query.py
View
4 django/db/backends/oracle/query.py
@@ -26,15 +26,15 @@ def query_class(QueryClass, Database):
class OracleQuery(QueryClass):
def resolve_columns(self, row, fields=()):
- from django.db.models.fields import DateField, DateTimeField, \
- TimeField, BooleanField, NullBooleanField, DecimalField, Field
index_start = len(self.extra_select.keys())
values = [self.convert_values(v, None) for v in row[:index_start]]
for value, field in map(None, row[index_start:], fields):
values.append(self.convert_values(value, field))
return values
def convert_values(self, value, field):
+ from django.db.models.fields import DateField, DateTimeField, \
+ TimeField, BooleanField, NullBooleanField, DecimalField, Field
if isinstance(value, Database.LOB):
value = value.read()
# Oracle stores empty strings as null. We need to undo this in

0 comments on commit 4a5c5c7

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