def __len__(self): return count.count(self.object_list)
def __len__(self): """Default implementation does len(self.qs) which runs the whole query...""" return count.count(self.qs)
def __len__(self): # Quick hack to prevent fetching all objects from database for root queryset return count.count(self.qs)