Django

Code

Ticket #7192 (closed: wontfix)

Opened 1 week ago

Last modified 1 week ago

class Paginator::def _get_count(self):

Reported by: kamanwu Assigned to: nobody
Component: Tools Version: SVN
Keywords: Paginator Cc:
Triage Stage: Unreviewed Has patch: 0
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

Description

change:

self._count = len(self.object_list)

to:

try:

self._count = int(self.object_list.count())

except (AttributeError?, TypeError?, ValueError?):

self._count = len(self.object_list)

Attachments

Change History

05/07/08 22:43:09 changed by Alex

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to wontfix.
  • needs_tests changed.
  • needs_docs changed.

There is a separate QuerySetPageinator? class that implements using the count method.


Add/Change #7192 (class Paginator::def _get_count(self):)




Change Properties
Action