2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-16 09:46:31 +00:00

Send search query text to template

This commit is contained in:
Oliver Walters
2019-04-17 00:57:44 +10:00
parent 3c7191c8c8
commit fbf764e2ef
2 changed files with 5 additions and 1 deletions

View File

@@ -241,4 +241,8 @@ class SearchView(TemplateView):
context = self.get_context_data()
query = request.POST.get('search', '')
context['query'] = query
return super(TemplateView, self).render_to_response(context)