summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-20 07:19:12 +0100
committerDan McGee <dan@archlinux.org>2013-02-20 07:19:12 +0100
commit0491bdb2452e496b0a243e7abb3d15ef3fd71743 (patch)
tree4d45383c3497e7a76664e118beb7db9138004722 /packages
parentd53a848cdbf1c4f865c34bf5ecc3d153b80584bc (diff)
downloadarchweb-0491bdb2452e496b0a243e7abb3d15ef3fd71743.tar.gz
archweb-0491bdb2452e496b0a243e7abb3d15ef3fd71743.tar.xz
Fix some fallout with moving page to query params
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/views/search.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/views/search.py b/packages/views/search.py
index 9ca299f..0362602 100644
--- a/packages/views/search.py
+++ b/packages/views/search.py
@@ -121,7 +121,9 @@ class SearchListView(ListView):
def get_context_data(self, **kwargs):
context = super(SearchListView, self).get_context_data(**kwargs)
- context['current_query'] = self.request.GET.urlencode()
+ query_params = self.request.GET.copy()
+ query_params.pop('page', None)
+ context['current_query'] = query_params.urlencode()
context['search_form'] = self.form
return context