Fix some fallout with moving page to query params

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2013-02-20 00:19:12 -06:00
parent d53a848cdb
commit 0491bdb245

View File

@ -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