mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 08:46:39 +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)
|
||||
Reference in new issue
Block a user