Opened 2 years ago
Closed 2 years ago
#34437 closed Bug (fixed)
values() doesn't mention annotations as valid choices on resolving error
Description ¶
When doing
Book.objects.annotate(annotation=Value(1)).values("annotation_type")
The resulting FieldError
doesn't mention annotation
as a valid choice
FieldError: Cannot resolve keyword 'annotation_typo' into field. Choices are: age, book, book_contact_set, friends, id, name
Change History (2)
comment:1 by , 2 years ago
Owner: | changed from | to
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In cb137929: