]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-266
authorqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Jul 2010 17:08:47 +0000 (17:08 +0000)
committerqw3rty <qw3rty@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Jul 2010 17:08:47 +0000 (17:08 +0000)
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

index 03745aeb35714aed60bd8b6b6cbfe6b4de721494..60ad885999f87f165390a27c9d3ea384175b33a0 100644 (file)
@@ -324,17 +324,16 @@ def user_subscriptions(request, user):
     show_auto = True\r
     manage_open = False\r
     \r
-    if len(request.GET) > 0:\r
-        manage_open = True\r
-        \r
     if auto == 'True':\r
+        manage_open = True\r
         show_auto = True\r
         subscriptions = QuestionSubscription.objects.filter(user=user).order_by('-last_view')        \r
-        #subscriptions = user.subscriptions.all().order_by('-questionsubscription__last_view')\r
+        # subscriptions = user.subscriptions.all().order_by('-questionsubscription__last_view')\r
     else:\r
+        manage_open = True\r
         show_auto = False\r
         subscriptions = QuestionSubscription.objects.filter(user=user, auto_subscription=False).order_by('-last_view')\r
-        #subscriptions = user.subscriptions.filter(questionsubscription__auto_subscription=False).order_by('-questionsubscription__last_view')\r
+        # subscriptions = user.subscriptions.filter(questionsubscription__auto_subscription=False).order_by('-questionsubscription__last_view')\r
 \r
     if request.method == 'POST':\r
         manage_open = False\r