Opened 15 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 Carl Meyer, 15 years ago

Component: Uncategorized → Database layer (models, ORM)
Triage Stage: Unreviewed → Accepted
Type: Uncategorized → Bug

comment:2 by Chris Lamb, 15 years ago

The .distinct() case has been "accidentally" fixed by the support of "DISTINCT ON" queries.

The select_related() case is still problematic.

comment:3 by Baptiste Mispelon, 13 years ago

Resolution: → duplicate
Status: new → closed

This is a duplicate of #10414.

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