[yocto] [patchwork][PATCH 1/2] patchwork/paginator.py: Add archive parameter

Jose Lamego jose.a.lamego at linux.intel.com
Mon Mar 27 11:40:49 PDT 2017


paginator links do not keep "archive" filtering parameter from
current view, which may lead to inaccurate data displayed in the
next views.

This change adds the "archive" parameter read from the current
request to the paginator class.

[YOCTO #11200]

Signed-off-by: Jose Lamego <jose.a.lamego at linux.intel.com>
---
 patchwork/paginator.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/patchwork/paginator.py b/patchwork/paginator.py
index 0f6d684..88fca29 100644
--- a/patchwork/paginator.py
+++ b/patchwork/paginator.py
@@ -93,3 +93,4 @@ class Paginator(paginator.Paginator):
         self.leading_set.reverse()
         self.long_page = len(
             self.current_page.object_list) >= LONG_PAGE_THRESHOLD
+        self.archive = request.GET.get("archive")
-- 
2.7.4




More information about the yocto mailing list