forked from 0x2620/pandora
fix sort of static edits
This commit is contained in:
parent
9685c7e4a5
commit
97a46dceb0
1 changed files with 6 additions and 3 deletions
|
@ -187,6 +187,9 @@ def _order_clips(edit, sort):
|
|||
order = '%s%s' % (operator, key)
|
||||
order_by.append(order)
|
||||
if order_by:
|
||||
if edit.type == 'static':
|
||||
qs = qs.order_by(*order_by)
|
||||
else:
|
||||
qs = qs.order_by(*order_by, nulls_last=True)
|
||||
qs = qs.distinct()
|
||||
return qs
|
||||
|
|
Loading…
Reference in a new issue