diff --git a/docs/release-notes/version-3.0.md b/docs/release-notes/version-3.0.md index 5fdac54b9..7dda58d7e 100644 --- a/docs/release-notes/version-3.0.md +++ b/docs/release-notes/version-3.0.md @@ -5,6 +5,7 @@ * [#7131](https://github.com/netbox-community/netbox/issues/7131) - Fix issue where Site fields were hidden when editing a VLAN group * [#7148](https://github.com/netbox-community/netbox/issues/7148) - Fix issue where static query parameters with multiple values were not queried properly * [#7153](https://github.com/netbox-community/netbox/issues/7153) - Allow clearing of assigned device type images +* [#7169](https://github.com/netbox-community/netbox/issues/7169) - Fix CSV import file upload --- diff --git a/netbox/netbox/views/generic.py b/netbox/netbox/views/generic.py index aafb2f3d8..0d4f89d0f 100644 --- a/netbox/netbox/views/generic.py +++ b/netbox/netbox/views/generic.py @@ -21,8 +21,7 @@ from extras.signals import clear_webhooks from utilities.error_handlers import handle_protectederror from utilities.exceptions import AbortTransaction, PermissionsViolation from utilities.forms import ( - BootstrapMixin, BulkRenameForm, ConfirmationForm, CSVDataField, CSVFileField, ImportForm, TableConfigForm, - restrict_form_fields, + BootstrapMixin, BulkRenameForm, ConfirmationForm, CSVDataField, CSVFileField, ImportForm, restrict_form_fields, ) from utilities.permissions import get_permission_for_model from utilities.tables import paginate_table diff --git a/netbox/templates/generic/object_bulk_import.html b/netbox/templates/generic/object_bulk_import.html index d1f744795..2d5957268 100644 --- a/netbox/templates/generic/object_bulk_import.html +++ b/netbox/templates/generic/object_bulk_import.html @@ -17,17 +17,32 @@ {% block content %}
-
- {% csrf_token %} - {% render_form form %} -
-
- {% if return_url %} - Cancel - {% endif %} - -
+ + + {% csrf_token %} +
+
+ {% render_field form.csv %}
+
+ {% render_field form.csv_file %} +
+
+
+
+ {% if return_url %} + Cancel + {% endif %} + +
+
{% if fields %}