X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6280673f35e13e75e81c5b7821bd2a44a1831eab..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/src/search/context_processors.py diff --git a/src/search/context_processors.py b/src/search/context_processors.py new file mode 100644 index 000000000..3cb9256c6 --- /dev/null +++ b/src/search/context_processors.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.core.urlresolvers import reverse +from search.forms import SearchForm + + +def search_form(request): + return { 'search_form': SearchForm(reverse('search.views.hint'), request.GET) }