Changeset 7819 for django/trunk/django/core
- Timestamp:
- 07/01/08 23:31:28 (5 months ago)
- Files:
-
- django/trunk/django/core/paginator.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/paginator.py
r7353 r7819 174 174 try: 175 175 self._count = self.object_list.count() 176 except TypeError: 176 except (AttributeError, TypeError): 177 # AttributeError if object_list has no count() method. 178 # TypeError if object_list.count() requires arguments 179 # (i.e. is of type list). 177 180 self._count = len(self.object_list) 178 181 return self._count
