#28657: Strangely odd behaviour when ordering QuerySet by BooleanField.
-------------------------------------+-------------------------------------
     Reporter:  Leonardo Arroyo      |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.11
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  queryset, boolean,   |             Triage Stage:
  order, ordering                    |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Leonardo Arroyo):

 This was indeed the problem. For some reason I assumed ordering by a
 boolean field would yield consistent results when LIMITing it on
 PostgreSQL. It does not. Ordering by pk + boolean fixes it.

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28657#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/072.437c1331fbc5d65376959f9ef1387dc4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to