findFiles
This commit is contained in:
parent
9ce590157a
commit
09464ba805
1 changed files with 2 additions and 1 deletions
|
@ -447,7 +447,8 @@ Positions
|
|||
response['data']['items'] = qs.count()
|
||||
elif 'positions' in query:
|
||||
#FIXME: this does not scale for larger results
|
||||
qs = _order_query(query['qs'], query['sort'])
|
||||
qs = models.File.objects.filter(item__in=query['qs'])
|
||||
qs = _order_query(qs, query['sort'])
|
||||
|
||||
response['data']['positions'] = {}
|
||||
ids = [j['itemId'] for j in qs.values('itemId')]
|
||||
|
|
Loading…
Reference in a new issue