1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #3851: Allow passing initial data to custom script forms

This commit is contained in:
Jeremy Stretch
2020-01-09 09:41:10 -05:00
parent b36d0ca3fc
commit 54227ca9c7
3 changed files with 4 additions and 3 deletions

View File

@@ -392,7 +392,7 @@ class ScriptView(PermissionRequiredMixin, View):
def get(self, request, module, name):
script = self._get_script(module, name)
form = script.as_form()
form = script.as_form(initial=request.GET)
return render(request, 'extras/script.html', {
'module': module,