Skip to content

Commit

Permalink
apps/contrib: fix error when switching language on search page
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk authored and m4ra committed Oct 31, 2023
1 parent 865eac9 commit bc82559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/contrib/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ class SearchResultsView(ListView):

def get_queryset(self):
sb = get_search_backend()
query = self.request.GET.get('q')
query = self.request.GET.get('q', '')
res = sb.autocomplete(query, Page, fields=get_search_fields())
return res
3 changes: 3 additions & 0 deletions changelog/_0001.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- error when switching language on search page

0 comments on commit bc82559

Please sign in to comment.