\r
if auto == 'True':\r
show_auto = True\r
- subscriptions = user.subscriptions.all().order_by('-questionsubscription__last_view')\r
+ subscriptions = QuestionSubscription.objects.filter(user=user).order_by('-last_view') \r
+ #subscriptions = user.subscriptions.all().order_by('-questionsubscription__last_view')\r
else:\r
show_auto = False\r
- subscriptions = user.subscriptions.filter(questionsubscription__auto_subscription=False).order_by('-questionsubscription__last_view')\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
\r
if request.method == 'POST':\r
manage_open = False\r