Fix some fallout with moving page to query params
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
d53a848cdb
commit
0491bdb245
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user