filters = SearchFilters(request.GET)
ctx = {
'title': 'Wynik wyszukiwania',
- 'query': filters.data['q'],
+ 'query': request.GET.get('q', ''),
'filters': filters,
}
if filters.is_valid():
@cache.never_cache
def main(request):
- if request.EXPERIMENTS['search'].value:
- request.EXPERIMENTS['layout'].override(True)
+ if request.EXPERIMENTS['layout'].value:
return search(request)
query = request.GET.get('q', '')