mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-05 14:56:24 -06:00
* Add handling for FieldError to CSVModelChoiceField.to_python to handle invalid accessor field * manufacturer & default_platform should be CSVModelChoiceFields * Fix string translation --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
@@ -373,7 +373,7 @@ class DeviceTypeImportForm(NetBoxModelImportForm):
|
||||
to_field_name='name',
|
||||
help_text=_('The manufacturer which produces this device type')
|
||||
)
|
||||
default_platform = forms.ModelChoiceField(
|
||||
default_platform = CSVModelChoiceField(
|
||||
label=_('Default platform'),
|
||||
queryset=Platform.objects.all(),
|
||||
to_field_name='name',
|
||||
|
||||
Reference in New Issue
Block a user