Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 4a5c5c78f2ecd4ed8859cd5ac773ff3a01bccf96 1 parent 177f7d5
@malcolmt malcolmt authored
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,8 +26,6 @@ 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):
@@ -35,6 +33,8 @@ def resolve_columns(self, row, fields=()):
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.