Browse Source

Fix AttributeError in Ping admin

pull/90/head
Pēteris Caune 8 years ago
parent
commit
b1ad0415da
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hc/api/admin.py

+ 1
- 1
hc/api/admin.py View File

@ -103,7 +103,7 @@ class LargeTablePaginator(Paginator):
Changed to use an estimate if the estimate is greater than 10,000
Returns the total number of objects, across all pages.
"""
if self._count is None:
if not hasattr(self, "_count") or self._count is None:
try:
estimate = 0
if not self.object_list.query.where:


Loading…
Cancel
Save