Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29032 closed Bug (fixed)

Docs example for expressions in QuerySet.values() doesn't work

Reported by: Tim Graham Owned by: Mariusz Felisiak
Component: Documentation Version: 1.11
Severity: Normal Keywords:
Cc: Ian Foote Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

The Blog.objects.values('author', entries=Count('entry')) example added in 39f35d4b9de223b72c67bb1d12e65669b4e1355b crashes with FieldError: Cannot resolve keyword 'author' into field..

(reported django-users)

Change History (6)

comment:1 by Tim Graham, 6 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 6 years ago

Has patch: set
Owner: changed from nobody to Mariusz Felisiak
Status: newassigned

comment:3 by Tim Graham, 6 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by GitHub <noreply@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 7fbb1bd0:

Fixed #29032 -- Fixed an example of using expressions in QuerySet.values().

comment:5 by Mariusz Felisiak <felisiak.mariusz@…>, 6 years ago

In c881c4f1:

[2.0.x] Fixed #29032 -- Fixed an example of using expressions in QuerySet.values().

Backport of 7fbb1bd00d8a3e9a834de83d36ebcbff15c18938 from master

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 6 years ago

In 649d5ea:

[1.11.x] Fixed #29032 -- Fixed an example of using expressions in QuerySet.values().

Backport of 7fbb1bd00d8a3e9a834de83d36ebcbff15c18938 from master

Note: See TracTickets for help on using tickets.
Back to Top