You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

context_processors.py 246B

12345678910
  1. from oscar.core.loading import get_class
  2. SearchForm = get_class('search.forms', 'SearchForm')
  3. def search_form(request):
  4. """
  5. Ensure that the search form is available site wide
  6. """
  7. return {'search_form': SearchForm(request.GET)}