forked from 0x2620/pandora
readd selected_related but without arguments
This commit is contained in:
parent
02a2d00f9d
commit
8b30add49e
1 changed files with 1 additions and 0 deletions
|
@ -240,6 +240,7 @@ def findPlaces(request, data):
|
||||||
qs = qs.distinct()
|
qs = qs.distinct()
|
||||||
if 'keys' in data:
|
if 'keys' in data:
|
||||||
qs = qs[query['range'][0]:query['range'][1]]
|
qs = qs[query['range'][0]:query['range'][1]]
|
||||||
|
qs = qs.select_related()
|
||||||
response['data']['items'] = [p.json(data['keys'], request.user) for p in qs]
|
response['data']['items'] = [p.json(data['keys'], request.user) for p in qs]
|
||||||
elif 'position' in query:
|
elif 'position' in query:
|
||||||
ids = [i.get_id() for i in qs]
|
ids = [i.get_id() for i in qs]
|
||||||
|
|
Loading…
Reference in a new issue