#8408: add a new meta option: don't do count(*) in admin
-------------------------------------+-------------------------------------
Reporter: lidaobing | Owner: nobody
Type: | Status: reopened
Uncategorized | Component: contrib.admin
Milestone: | Severity: Normal
Version: SVN | Keywords:
Resolution: | Has patch: 1
Triage Stage: Design | Needs tests: 1
decision needed | Easy pickings: 0
Needs documentation: 1 |
Patch needs improvement: 0 |
-------------------------------------+-------------------------------------
Changes (by boxm):
* needs_docs: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1
* stage: Accepted => Design decision needed
Comment:
OK, here's an attempt at a patch that fixes this.
I've added a new UncountedPaginator to pagination.py, and updated the
admin code to check whether the paginator has the appropriate attributes
before using them, falling back on alternative implementations if not.
Before I create test & doc updates, would like some feedback on whether
this patch is going about things the right way and is something that might
be accepted.
--
Ticket URL: <https://code.djangoproject.com/ticket/8408#comment:19>
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.