fix: MSA import wizard posted back to the disk CSV import

When the CSV import handed an MSA export to the wizard, its forms had no
action and submitted to /disks/import/, which failed with KeyError 'format'.
All wizard forms now post to the MSA import URL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-21 14:16:26 +02:00
1 parent 2a6abc396d
commit 2b40fbfae0
1 file changed
+2 -2
@@ -22,7 +22,7 @@
{% endif %}
{% if step == 'upload' %}
<form method="post" enctype="multipart/form-data" class="card">
<form method="post" action="{% url 'plugins:netbox_utilities:disk_msa_import' %}" enctype="multipart/form-data" class="card">
{% csrf_token %}
<input type="hidden" name="step" value="upload">
<h2 class="card-header"><i class="mdi mdi-database-import me-1" aria-hidden="true"></i>HPE-MSA-Export importieren</h2>
@@ -47,7 +47,7 @@
</form>
{% else %}
<form method="post">
<form method="post" action="{% url 'plugins:netbox_utilities:disk_msa_import' %}">
{% csrf_token %}
<input type="hidden" name="export_data" value="{{ export_data }}">