X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ea9d7d13a44a6ad6357b1af8c977c27753268521..98062d2158ebe1f734d811691ab15e6887684281:/src/search/views.py diff --git a/src/search/views.py b/src/search/views.py index 9e3645858..b5cc0baa3 100644 --- a/src/search/views.py +++ b/src/search/views.py @@ -123,7 +123,7 @@ def search(request): filters = SearchFilters(request.GET) ctx = { 'title': 'Wynik wyszukiwania', - 'query': filters.data['q'], + 'query': request.GET.get('q', ''), 'filters': filters, } if filters.is_valid():