- elif tab == 'manage':\r
- manage_open = True\r
-\r
- auto = request.GET.get('auto', 'True')\r
- if auto == 'True':\r
- show_auto = True\r
- subscriptions = QuestionSubscription.objects.filter(user=user).order_by('-last_view')\r
- else:\r
- show_auto = False\r
- subscriptions = QuestionSubscription.objects.filter(user=user, auto_subscription=False).order_by('-last_view')\r
-\r
- return pagination.paginated(request, ('subscriptions', SubscriptionListPaginatorContext()), {\r
- 'subscriptions':subscriptions,\r
- 'view_user':user,\r
- "auto":show_auto,\r
- 'manage_open':manage_open,\r
- })\r
-\r
- # else:\r
- # todo: probably want to throw an error\r
- # error = "error to throw"\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r