|
|
@@ -130,7 +130,7 @@ class BaseTable(tables.Table):
|
|
|
prefixes/IP addresses/etc., where some table rows may represent available address space.
|
|
|
"""
|
|
|
if not hasattr(self, '_objects_count'):
|
|
|
- self._objects_count = sum(1 for obj in self.data if getattr(obj, 'pk'))
|
|
|
+ self._objects_count = sum(1 for obj in self.data if hasattr(obj, 'pk'))
|
|
|
return self._objects_count
|
|
|
|
|
|
|