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

Fixes #1567: Prompt user for session key when importing secrets

This commit is contained in:
Jeremy Stretch
2017-10-10 13:22:40 -04:00
parent c300879995
commit 8403e91fc9
4 changed files with 9 additions and 67 deletions

View File

@@ -203,7 +203,9 @@ class SecretBulkImportView(BulkImportView):
permission_required = 'ipam.add_vlan'
model_form = forms.SecretCSVForm
table = tables.SecretTable
template_name = 'secrets/secret_import.html'
default_return_url = 'secrets:secret_list'
widget_attrs = {'class': 'requires-session-key'}
master_key = None