#26195: order_by pk doesn't work in multi-table inheritance models if parent has
default ordering
-------------------------------------+-------------------------------------
     Reporter:  ris                  |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.9
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  multi table          |             Triage Stage:
  inheritance order_by MTI pk        |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by ris):

 Well, at least it's documented here now.

 Though I would argue that ordering by "pk" would be a very useful thing
 for the ORM to support universally - especially if you want to work
 generically with models and `.distinct ()` is going to insist on
 distinctifying on everything-and-its-mother by default.

--
Ticket URL: <https://code.djangoproject.com/ticket/26195#comment:3>
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/061.52622eddb96ee8361177a258b7ea0025%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to