mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-23 13:52:17 -06:00
Fixes #11683: Fix CSV header attribute detection when auto-detecting import format
This commit is contained in:
@@ -197,6 +197,8 @@ class ImportForm(BootstrapMixin, forms.Form):
|
||||
self.cleaned_data['data'] = self._clean_json(data)
|
||||
elif format == ImportFormatChoices.YAML:
|
||||
self.cleaned_data['data'] = self._clean_yaml(data)
|
||||
else:
|
||||
raise forms.ValidationError(f"Unknown data format: {format}")
|
||||
|
||||
def _detect_format(self, data):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user