#16819: list_editable breaks multipage changelists
-------------------------------------+-------------------------------------
               Reporter:  anossov@…  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Milestone:             |      Component:  contrib.admin
                Version:  SVN        |       Severity:  Normal
             Resolution:             |       Keywords:  admin list_editable
           Triage Stage:  Accepted   |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------

Comment (by julien):

 The issue occurs when no ordering is not explicitly set by
 `Model.Meta.ordering` or `ModelAdmin.ordering`. In that case the `FormSet`
 enforces default ordering by primary key
 (source:django/trunk/django/forms/models.py?rev=16659#L459) (see the
 reason in #10163), yet the queryset has already been paginated by the
 changelist
 (source:django/trunk/django/contrib/admin/views/main.py?rev=16659#L156).

 I'm wondering if the default ordering shouldn't be taken out of the
 `FormSet` and moved to `ChangeList.get_ordering()` as in the suggested
 patch in comment:3.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16819#comment:5>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to