#17198: In admin results can be omitted due to pagination and inadequate 
ordering
clauses
-------------------------------+------------------------------------
     Reporter:  lukeplant      |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------

Comment (by anonymous):

 Using a deterministic order is certainly more important than potential
 performance issues. According to akaariai's benchmark results, those
 performance issues don't seem significant in Postgres anyway. It'd be
 worth checking with MySQL/Oracle though.

 The fix should probably be done at the end of `ChangeList.get_ordering()`.
 'pk' should be appended to the list of ordering fields, unless that list
 already contains 'pk', '-pk' or the explicit primary key field (both ASC
 and DESC).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17198#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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to