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