#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 anonymous):
Possible solution: fallback to ordering on PK is no ordering is specified
anywhere:
{{{
*** patched_main.py 2011-09-12 14:00:33.000000000 +0400
--- django/contrib/admin/views/main.py 2011-09-12 14:00:41.000000000
+0400
***************
*** 211,216 ****
--- 211,218 ----
except (IndexError, ValueError):
continue # Invalid ordering specified, skip it.
+ if not ordering:
+ ordering = ('pk',)
return ordering
def get_ordering_field_columns(self):
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16819#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 [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.