also sort smart lists

This commit is contained in:
j 2014-02-07 09:45:43 +00:00
parent 50d122f54b
commit 920e6ccff9
1 changed files with 1 additions and 1 deletions

View File

@ -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)