]> git.openstreetmap.org Git - osqa.git/commitdiff
add the feed request exclude parameters as an argument of the question_list view...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 30 Jun 2011 13:07:05 +0000 (13:07 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 30 Jun 2011 13:07:05 +0000 (13:07 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1086 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/readers.py

index c88ba685577688341696a4569ff22bafe640ea12..aeaae0db3959c6216f57fd7b2a1ec2ecda6d5d7a 100644 (file)
@@ -160,7 +160,8 @@ def question_list(request, initial,
                   allowIgnoreTags=True,
                   feed_url=None,
                   paginator_context=None,
-                  feed_sort=('-added_at',)):
+                  feed_sort=('-added_at',),
+                  feed_req_params_exclude=(_('page'), _('pagesize'), _('sort'))):
 
     questions = initial.filter_state(deleted=False)
 
@@ -183,7 +184,7 @@ def question_list(request, initial,
     #answer_description = _("answers")
 
     if not feed_url:
-        req_params = generate_uri(request.GET, (_('page'), _('pagesize')))
+        req_params = generate_uri(request.GET, feed_req_params_exclude)
 
         if req_params:
             req_params = '&' + req_params