Re: [Django] #15648: Allow QuerySet.values_list() to return a namedtuple

7 views
Skip to first unread message

Django

unread,
Feb 16, 2017, 7:40:55 PM2/16/17
to django-...@googlegroups.com
#15648: Allow QuerySet.values_list() to return a namedtuple
-------------------------------------+-------------------------------------
Reporter: Paul Miller | Owner: Paul
| Miller
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: namedtuple, tuple, | Triage Stage: Accepted
queryset |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Andrii Soldatenko):

Does anyone works on this FR? I would like to help.
What's the final decision?

Do I need use this approach?
`Item.objects.values_list(*names_list, named=True)`

thanks.

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

Django

unread,
Aug 4, 2017, 7:49:36 AM8/4/17
to django-...@googlegroups.com
#15648: Allow QuerySet.values_list() to return a namedtuple
-------------------------------------+-------------------------------------
Reporter: Paul Miller | Owner: Sergey
| Fedoseev

Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: namedtuple, tuple, | Triage Stage: Accepted
queryset |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sergey Fedoseev):

* owner: Paul Miller => Sergey Fedoseev
* needs_better_patch: 1 => 0
* needs_docs: 1 => 0


Comment:

[https://github.com/django/django/pull/8852 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/15648#comment:21>

Django

unread,
Sep 6, 2017, 4:27:36 PM9/6/17
to django-...@googlegroups.com
#15648: Allow QuerySet.values_list() to return a namedtuple
-------------------------------------+-------------------------------------
Reporter: Paul Miller | Owner: Sergey
| Fedoseev
Type: New feature | Status: closed

Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: fixed

Keywords: namedtuple, tuple, | Triage Stage: Accepted
queryset |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"f3c956214366d590c0a588aaad83f8f770c78b76" f3c95621]:
{{{
#!CommitTicketReference repository=""
revision="f3c956214366d590c0a588aaad83f8f770c78b76"
Fixed #15648 -- Allowed QuerySet.values_list() to return a namedtuple.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/15648#comment:22>

Reply all
Reply to author
Forward
0 new messages