Opened 5 years ago

Closed 4 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


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 Changed 5 years ago by Carl Meyer

Component: UncategorizedDatabase layer (models, ORM)
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

comment:2 Changed 5 years ago by Chris Lamb

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

The select_related() case is still problematic.

comment:3 Changed 4 years ago by Baptiste Mispelon

Resolution: duplicate
Status: newclosed

This is a duplicate of #10414.

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