From a265135654d4c6b8c993a0b1b17b05b79b5ad21c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 6 Nov 2011 15:29:22 +0100 Subject: [PATCH] dont remove subscribers from private lists --- pandora/itemlist/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pandora/itemlist/views.py b/pandora/itemlist/views.py index 8c530a8b..83a3cd5e 100644 --- a/pandora/itemlist/views.py +++ b/pandora/itemlist/views.py @@ -310,13 +310,14 @@ def editList(request): if value not in list._status: value = list._status[0] if value == 'private': - for user in list.subscribed_users.all(): - list.subscribed_users.remove(user) - qs = models.Position.objects.filter(user=request.user, section='section', list=list) + qs = models.Position.objects.filter(user=request.user, + section='section', list=list) if qs.count() > 1: pos = qs[0] pos.section = 'personal' pos.save() + models.Position.objects.filter(list=list, + section='public').delete() elif value == 'featured': if not request.user.is_staff: value = list.status