From 0491bdb2452e496b0a243e7abb3d15ef3fd71743 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 20 Feb 2013 00:19:12 -0600 Subject: Fix some fallout with moving page to query params Signed-off-by: Dan McGee --- packages/views/search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ def get_queryset(self): 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 -- cgit v1.2.3-54-g00ecf