sort by part should be same as stream sort
This commit is contained in:
parent
d1b210d06a
commit
fba6281b3f
1 changed files with 4 additions and 0 deletions
|
@ -488,6 +488,10 @@ def _order_query(qs, sort, prefix=''):
|
|||
# key = '%s_desc' % key
|
||||
order = '%s%s%s' % (operator, prefix, key)
|
||||
order_by.append(order)
|
||||
if key == 'part':
|
||||
order = '%s%s%s' % (operator, prefix, 'sort_path')
|
||||
order_by.append(order)
|
||||
|
||||
if order_by:
|
||||
qs = qs.order_by(*order_by)
|
||||
return qs
|
||||
|
|
Loading…
Reference in a new issue