Opened 7 years ago
Last modified 7 years ago
#29032 closed Bug
Docs example for expressions in QuerySet.values() doesn't work — at Initial Version
Reported by: | Tim Graham | Owned by: | nobody |
---|---|---|---|
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
The Blog.objects.values('author', entries=Count('entry'))
example crashes with FieldError: Cannot resolve keyword 'author' into field.
.
(reported django-users)
Note:
See TracTickets
for help on using tickets.