Opened 11 years ago

Closed 11 years ago

#7192 closed (wontfix)

class Paginator::def _get_count(self):

Reported by: kamanwu Owned by: nobody
Component: Tools Version: master
Severity: Keywords: Paginator
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no



self._count = len(self.object_list)



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

except (AttributeError, TypeError, ValueError):

self._count = len(self.object_list)

Change History (1)

comment:1 Changed 11 years ago by Alex Gaynor

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top