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)

View File

@ -5,7 +5,7 @@
<h3>InvenTree Search</h3>
<p>
Search stuff goes here.
Searched for: {{ query }}
</p>
{% endblock %}