forked from 0x2620/pandora
fix sorting edits
This commit is contained in:
parent
bcfcfb56ca
commit
c0022b1f86
1 changed files with 3 additions and 1 deletions
|
@ -172,7 +172,9 @@ def _order_clips(qs, sort):
|
||||||
order = '%s%s' % (operator, key)
|
order = '%s%s' % (operator, key)
|
||||||
order_by.append(order)
|
order_by.append(order)
|
||||||
if order_by:
|
if order_by:
|
||||||
qs = qs.order_by(*order_by, nulls_last=True)
|
#fixme use nulls_last
|
||||||
|
#qs = qs.order_by(*order_by, nulls_last=True)
|
||||||
|
qs = qs.order_by(*order_by)
|
||||||
qs = qs.distinct()
|
qs = qs.distinct()
|
||||||
return qs
|
return qs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue