mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-04 06:38:16 -06:00
manufacturer & default_platform should be CSVModelChoiceFields
This commit is contained in:
parent
b761fde0d3
commit
f5f3c5880f
@ -367,13 +367,13 @@ class ManufacturerImportForm(NetBoxModelImportForm):
|
|||||||
|
|
||||||
|
|
||||||
class DeviceTypeImportForm(NetBoxModelImportForm):
|
class DeviceTypeImportForm(NetBoxModelImportForm):
|
||||||
manufacturer = forms.ModelChoiceField(
|
manufacturer = CSVModelChoiceField(
|
||||||
label=_('Manufacturer'),
|
label=_('Manufacturer'),
|
||||||
queryset=Manufacturer.objects.all(),
|
queryset=Manufacturer.objects.all(),
|
||||||
to_field_name='name',
|
to_field_name='name',
|
||||||
help_text=_('The manufacturer which produces this device type')
|
help_text=_('The manufacturer which produces this device type')
|
||||||
)
|
)
|
||||||
default_platform = forms.ModelChoiceField(
|
default_platform = CSVModelChoiceField(
|
||||||
label=_('Default platform'),
|
label=_('Default platform'),
|
||||||
queryset=Platform.objects.all(),
|
queryset=Platform.objects.all(),
|
||||||
to_field_name='name',
|
to_field_name='name',
|
||||||
|
Loading…
Reference in New Issue
Block a user