Commits

mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 1be8aa8

queryset-refactor: Fixed some missing imports from [7470]. Thanks, Justin Bronn.

  • Participants
  • Parent commits 8df998b
  • Branches queryset-refactor

Comments (0)

Files changed (1)

File django/db/backends/oracle/query.py

 
     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):
             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