Opened 13 years ago

Closed 12 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, 13 years ago

Component: UncategorizedDatabase layer (models, ORM)
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 by Chris Lamb, 13 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, 12 years ago

Resolution: duplicate
Status: newclosed

This is a duplicate of #10414.

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