Retrieve all entities rather than just the first 1k
We probably need to start doing some caching for the pick view soon.
Patch by: Sverre Rabbelier
--- a/app/soc/views/models/base.py Tue Mar 10 23:55:33 2009 +0000
+++ b/app/soc/views/models/base.py Tue Mar 10 23:56:04 2009 +0000
@@ -642,7 +642,9 @@
# need to use getlist as we want to support multiple values
filter[key] = request.GET.getlist(key)
- entities = logic.getForFields(filter=filter, limit=1000)
+ query = logic.getQueryForFields(filter=filter)
+ entities = logic.getAll(query)
+
data = [i.toDict() for i in entities]
return self.json(request, data)