]> git.openstreetmap.org Git - osqa.git/commitdiff
pass the request object to the template context, we need it in the tag selector templ...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 21 Jun 2011 15:27:01 +0000 (15:27 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Tue, 21 Jun 2011 15:27:01 +0000 (15:27 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1068 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/templatetags/question_list_tags.py

index 3ecf1f605a0e58b0e4b9176d4d799fe8d25fca69..8cef6fc44f14fb0373ffd040757d68dfae865769 100644 (file)
@@ -69,9 +69,10 @@ def tag_selector(context):
     if request.user.is_authenticated():\r
         pt = MarkedTag.objects.filter(user=request.user)\r
         return {\r
+            'request' : request,\r
             "interesting_tag_names": pt.filter(reason='good').values_list('tag__name', flat=True),\r
             'ignored_tag_names': pt.filter(reason='bad').values_list('tag__name', flat=True),\r
             'user_authenticated': True,\r
         }\r
     else:\r
-        return {'user_authenticated': False}\r
+        return { 'request' : request, 'user_authenticated': False}\r