#19195: Using distinct([*fields]) filter on a foreign key produces an ordering
error when the foreign key has a Meta ordering field.
-------------------------------------+-------------------------------------
     Reporter:  chrisedgemon@…       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:
  (models, ORM)                      |  1.7-beta-2
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  distinct, query      |             Triage Stage:  Ready for
    Has patch:  1                    |  checkin
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette <charette.s@…>):

 In [changeset:"a6ecd5dbb34249f756a337c359eef1e8d78dc01e"]:
 {{{
 #!CommitTicketReference repository=""
 revision="a6ecd5dbb34249f756a337c359eef1e8d78dc01e"
 [1.7.x] Fixed #19195 -- Allow explicit ordering by a relation `_id` field.

 Thanks to chrisedgemon for the report and shaib, akaariai and
 timgraham for the review.

 Backport of 24ec9538b7 from master
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19195#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.b54621e7d5eb2814c95bbeb42602cc2f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to