forked from 0x2620/pandora
also sort smart lists
This commit is contained in:
parent
50d122f54b
commit
920e6ccff9
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ def sortClips(request):
|
|||
data = json.loads(request.POST['data'])
|
||||
edit = get_edit_or_404_json(data['edit'])
|
||||
response = json_response()
|
||||
clips = models.Clip.objects.filter(edit=edit)
|
||||
clips = edit.get_clips()
|
||||
clips = _order_clips(clips, data['sort'])
|
||||
response['data']['clips'] = [ox.toAZ(c['id']) for c in clips.values('id')]
|
||||
return render_to_json_response(response)
|
||||
|
|
Loading…
Reference in a new issue