mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Fixes #11617: Check for invalid CSV headers during bulk import * Add test for CSV import header validation
This commit is contained in:
@@ -129,6 +129,7 @@ class BulkImportForm(BootstrapMixin, SyncedDataMixin, forms.Form):
|
||||
headers, records = parse_csv(reader)
|
||||
|
||||
# Set CSV headers for reference by the model form
|
||||
headers.pop('id', None)
|
||||
self._csv_headers = headers
|
||||
|
||||
return records
|
||||
|
||||
Reference in New Issue
Block a user