Skip to content
Browse files

Fixed a problem in the backwards-compat abilities of the paginator. C…

…alling count() on a list throws a TypeError not an AttributeError.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 0fea134 commit 99150048ac1158e3978c2854bdb07bd4f2fce9fe @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/
2 django/core/
@@ -173,7 +173,7 @@ def _get_count(self):
if self._count is None:
self._count = self.object_list.count()
- except AttributeError:
+ except TypeError:
self._count = len(self.object_list)
return self._count
count = property(_get_count)

0 comments on commit 9915004

Please sign in to comment.
Something went wrong with that request. Please try again.