From 923d5f9317209295b254f9b72095104ed236652a Mon Sep 17 00:00:00 2001 From: qw3rty Date: Fri, 16 Jul 2010 17:08:47 +0000 Subject: [PATCH] OSQA-266 fixed the unsubscribe button on the subscriptions page. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@540 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/views/users.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/forum/views/users.py b/forum/views/users.py index 03745ae..60ad885 100644 --- a/forum/views/users.py +++ b/forum/views/users.py @@ -324,17 +324,16 @@ def user_subscriptions(request, user): show_auto = True manage_open = False - if len(request.GET) > 0: - manage_open = True - if auto == 'True': + manage_open = True show_auto = True subscriptions = QuestionSubscription.objects.filter(user=user).order_by('-last_view') - #subscriptions = user.subscriptions.all().order_by('-questionsubscription__last_view') + # subscriptions = user.subscriptions.all().order_by('-questionsubscription__last_view') else: + manage_open = True show_auto = False subscriptions = QuestionSubscription.objects.filter(user=user, auto_subscription=False).order_by('-last_view') - #subscriptions = user.subscriptions.filter(questionsubscription__auto_subscription=False).order_by('-questionsubscription__last_view') + # subscriptions = user.subscriptions.filter(questionsubscription__auto_subscription=False).order_by('-questionsubscription__last_view') if request.method == 'POST': manage_open = False -- 2.39.5