mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 01:45:28 +00:00
Send search query text to template
This commit is contained in:
1 parent
3c7191c8c8
commit
fbf764e2ef
2 files changed
+5
-1
No files matched your search
@@ -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)
|
||||
@@ -5,7 +5,7 @@
|
||||
<h3>InvenTree Search</h3>
|
||||
|
||||
<p>
|
||||
Search stuff goes here.
|
||||
Searched for: {{ query }}
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in new issue
Block a user