From 920e6ccff90c7ed90eeb18667b352e9d497bee62 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 7 Feb 2014 09:45:43 +0000 Subject: [PATCH] also sort smart lists --- pandora/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/edit/views.py b/pandora/edit/views.py index 3f2a7d6c..b7a78a1e 100644 --- a/pandora/edit/views.py +++ b/pandora/edit/views.py @@ -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)