summaryrefslogtreecommitdiff
path: root/packages/views
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-20 00:19:12 -0600
committerDan McGee <dan@archlinux.org>2013-02-20 00:19:12 -0600
commit0491bdb2452e496b0a243e7abb3d15ef3fd71743 (patch)
tree4d45383c3497e7a76664e118beb7db9138004722 /packages/views
parentd53a848cdbf1c4f865c34bf5ecc3d153b80584bc (diff)
Fix some fallout with moving page to query params
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/views')
-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 9ca299f6..0362602e 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