forked from 0x2620/pandora
select related for some queries
This commit is contained in:
parent
9f63a45c2e
commit
5b933c22d8
5 changed files with 7 additions and 3 deletions
|
|
@ -171,6 +171,7 @@ Positions
|
|||
qs = query['qs'].distinct()
|
||||
if 'keys' in data:
|
||||
qs = qs[query['range'][0]:query['range'][1]]
|
||||
qs = qs.select_realed()
|
||||
response['data']['items'] = [p.json(request.user) for p in qs]
|
||||
elif 'position' in query:
|
||||
ids = [i.get_id() for i in qs]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue