limit = self.result_limit
if limit is not None:
limit += 1
- results = self.get_results(self.result_limit)
+ results = self.get_results(limit)
except:
if settings.DEBUG:
raise
class DatabaseSearch(BaseSearch):
model = None
- def has_more_results(self):
- return self.get_queryset().count() > self.result_limit
-
def search(self, limit=None):
if not hasattr(self, '_qs'):
self._qs = self.get_queryset()