[Django] #29032: Docs example for expressions in QuerySet.values() doesn't work

16 views
Skip to first unread message

Django

unread,
Jan 17, 2018, 1:53:59 PM1/17/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-----------------------------------------+------------------------
Reporter: Tim Graham | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
The `Blog.objects.values('author', entries=Count('entry'))` example
crashes with `FieldError: Cannot resolve keyword 'author' into field.`.

(reported [https://groups.google.com/d/topic/django-
users/ol9r4X_tHUk/discussionon django-users])

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

Django

unread,
Jan 17, 2018, 1:54:44 PM1/17/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-------------------------------+------------------------------------

Reporter: Tim Graham | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.11
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Description changed by Tim Graham:

Old description:

> The `Blog.objects.values('author', entries=Count('entry'))` example
> crashes with `FieldError: Cannot resolve keyword 'author' into field.`.
>
> (reported [https://groups.google.com/d/topic/django-
> users/ol9r4X_tHUk/discussionon django-users])

New description:

The `Blog.objects.values('author', entries=Count('entry'))` example added
in 39f35d4b9de223b72c67bb1d12e65669b4e1355b crashes with `FieldError:


Cannot resolve keyword 'author' into field.`.

(reported [https://groups.google.com/d/topic/django-
users/ol9r4X_tHUk/discussionon django-users])

--

--
Ticket URL: <https://code.djangoproject.com/ticket/29032#comment:1>

Django

unread,
Jan 18, 2018, 4:18:21 PM1/18/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-------------------------------+------------------------------------
Reporter: Tim Graham | Owner: felixxm
Type: Bug | Status: assigned
Component: Documentation | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by felixxm):

* owner: nobody => felixxm
* status: new => assigned
* has_patch: 0 => 1


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/29032#comment:2>

Django

unread,
Jan 18, 2018, 4:56:22 PM1/18/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-------------------------------------+-------------------------------------

Reporter: Tim Graham | Owner: felixxm
Type: Bug | Status: assigned
Component: Documentation | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/29032#comment:3>

Django

unread,
Jan 19, 2018, 2:56:05 AM1/19/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: felixxm
Type: Bug | Status: closed
Component: Documentation | Version: 1.11
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

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


Comment:

In [changeset:"7fbb1bd00d8a3e9a834de83d36ebcbff15c18938" 7fbb1bd0]:
{{{
#!CommitTicketReference repository=""
revision="7fbb1bd00d8a3e9a834de83d36ebcbff15c18938"
Fixed #29032 -- Fixed an example of using expressions in
QuerySet.values().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29032#comment:4>

Django

unread,
Jan 19, 2018, 2:58:22 AM1/19/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: felixxm
Type: Bug | Status: closed
Component: Documentation | Version: 1.11

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"c881c4f1f8c5440cad4bed8bb747ca0a4a3ea88b" c881c4f1]:
{{{
#!CommitTicketReference repository=""
revision="c881c4f1f8c5440cad4bed8bb747ca0a4a3ea88b"
[2.0.x] Fixed #29032 -- Fixed an example of using expressions in
QuerySet.values().

Backport of 7fbb1bd00d8a3e9a834de83d36ebcbff15c18938 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29032#comment:5>

Django

unread,
Jan 19, 2018, 2:59:43 AM1/19/18
to django-...@googlegroups.com
#29032: Docs example for expressions in QuerySet.values() doesn't work
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: felixxm
Type: Bug | Status: closed
Component: Documentation | Version: 1.11

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"649d5eaa8b7b224fc0eb8a3339a589288d5b10e8" 649d5ea]:
{{{
#!CommitTicketReference repository=""
revision="649d5eaa8b7b224fc0eb8a3339a589288d5b10e8"
[1.11.x] Fixed #29032 -- Fixed an example of using expressions in
QuerySet.values().

Backport of 7fbb1bd00d8a3e9a834de83d36ebcbff15c18938 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29032#comment:6>

Reply all
Reply to author
Forward
0 new messages