#9619: to_python not called when fetching data with .values(...)
-------------------------------------+-------------------------------------
     Reporter:  Valera Grishin       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  SVN
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:  values,custom        |  decision needed
  field, datetime                    |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by aaugustin):

 I probably haven't been here long enough, but I'm finding this behavior is
 extremely unexpected.

 I'll leave this ticket in DDN because I'm not sure I grasp all the
 consequences.

 But my gut feeling is that we should swallow the backwards incompatibility
 and fix this at some point — or at the very least make it clear in the
 documentation that `QuerySet.values()` returns raw database values, as
 spit by the database adapter.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/9619#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to