#14930: `values_list()` fails on queryset ordered by extra column
---------------------------------------------------+------------------------
Reporter: lsaffre | Owner: nobody
Status: reopened | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by russellm):
* status: closed => reopened
* resolution: wontfix =>
* stage: Unreviewed => Accepted
Comment:
After a follow up by [email protected] on django-dev:
It looks like my triage was mistaken. This isn't the Python iterator
exception bug; it's a Django problem.
It should be possible to *order* by a field that isn't included in the
result set. The logic constructing ValuesQuerySet appears to be truncating
the extra columns, rather than adding them but applying a mask.
--
Ticket URL: <http://code.djangoproject.com/ticket/14930#comment:2>
Django <http://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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.