Ticket #6823: paginator.patch

File paginator.patch, 498 bytes (added by mbonetti@…, 17 years ago)

Patch

  • django/core/paginator.py

     
    173173        if self._count is None:
    174174            try:
    175175                self._count = self.object_list.count()
    176             except AttributeError:
     176            except TypeError:
    177177                self._count = len(self.object_list)
    178178        return self._count
    179179    count = property(_get_count)
Back to Top