git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added sortable_field_name to the collection member inline for grappelli.
[philo.git]
/
contrib
/
sobol
/
search.py
diff --git
a/contrib/sobol/search.py
b/contrib/sobol/search.py
index
2999680
..
8c695c6
100644
(file)
--- a/
contrib/sobol/search.py
+++ b/
contrib/sobol/search.py
@@
-175,7
+175,7
@@
class BaseSearch(object):
limit = self.result_limit
if limit is not None:
limit += 1
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
except:
if settings.DEBUG:
raise
@@
-252,9
+252,6
@@
class BaseSearch(object):
class DatabaseSearch(BaseSearch):
model = None
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()
def search(self, limit=None):
if not hasattr(self, '_qs'):
self._qs = self.get_queryset()