Opened 18 years ago
Closed 18 years ago
#7053 closed (fixed)
valueslist returns fields added via extra's select as well as those specified
| Reported by: | jlenton | Owned by: | nobody |
|---|---|---|---|
| Component: | Uncategorized | Version: | queryset-refactor |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
>>> Article.objects.extra(select={'id_plus_one': 'id+1'}).order_by('id').valueslist('id') [(2, 1), (3, 2), (4, 3), (5, 4), (6, 5), (7, 6), (8, 7)]
Attachments (1)
Change History (3)
by , 18 years ago
| Attachment: | valueslist_extra_select_test.diff added |
|---|
comment:1 by , 18 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
a test that shows the buggy behavior