Opened 14 years ago
Closed 13 years ago
#16840 closed Bug (duplicate)
Bogus QuerySet.distinct(...) and QuerySet.select_related(...) arguments do not result in errors
| Reported by: | Chris Lamb | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | 1.3 |
| Severity: | Normal | 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
User.objects.distinct('How come you can put anything here?')
User.objects.select_related('Seems like asking for trouble, frankly.')
Change History (3)
comment:1 by , 14 years ago
| Component: | Uncategorized → Database layer (models, ORM) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Bug |
comment:2 by , 14 years ago
comment:3 by , 13 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
This is a duplicate of #10414.
Note:
See TracTickets
for help on using tickets.
The .distinct() case has been "accidentally" fixed by the support of "DISTINCT ON" queries.
The select_related() case is still problematic.