From df84cf1aa7de807a2f443418840c1d769305d2f1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 6 Jun 2014 11:38:03 +0000 Subject: [PATCH] return private clips in smart edits, fixes #2393 --- pandora/edit/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/edit/models.py b/pandora/edit/models.py index 2a7651f8..bd773dfb 100644 --- a/pandora/edit/models.py +++ b/pandora/edit/models.py @@ -205,7 +205,7 @@ class Edit(models.Model): return clips def get_clips_json(self, user=None): - qs = self.get_clips() + qs = self.get_clips(user) if self.type == 'static': clips = [c.json(user) for c in qs.order_by('index')] else: @@ -323,7 +323,7 @@ class Edit(models.Model): if key == 'id': response[key] = self.get_id() elif key == 'items': - response[key] = self.get_clips().count() + response[key] = self.get_clips(user).count() elif key == 'query': if not self.query.get('static', False): response[key] = self.query