#34615: queryset.order_by().first() is not consistent with other queryset
behaviours
-------------------------------------+-------------------------------------
     Reporter:  Iuri de Silvio       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 We added `order_by("pk")` only when it's not explicitly ordered, mainly,
 to get the consistent and stable behavior on all backends. It's been that
 way basically forever and, IMO, we shouldn't change it. You can start a
 discussion on DevelopersMailingList if you don't agree.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34615#comment:4>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070188763d09ab-459e535e-f30b-4de6-b629-616665929125-000000%40eu-central-1.amazonses.com.

Reply via email to