mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -06:00
Certain component types are optional
This commit is contained in:
parent
90e8f26cd4
commit
d5a0e12283
@ -2354,6 +2354,7 @@ class ConsolePortCSVForm(CSVModelForm):
|
|||||||
)
|
)
|
||||||
type = CSVChoiceField(
|
type = CSVChoiceField(
|
||||||
choices=ConsolePortTypeChoices,
|
choices=ConsolePortTypeChoices,
|
||||||
|
required=False,
|
||||||
help_text='Port type'
|
help_text='Port type'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2431,6 +2432,7 @@ class ConsoleServerPortCSVForm(CSVModelForm):
|
|||||||
)
|
)
|
||||||
type = CSVChoiceField(
|
type = CSVChoiceField(
|
||||||
choices=ConsolePortTypeChoices,
|
choices=ConsolePortTypeChoices,
|
||||||
|
required=False,
|
||||||
help_text='Port type'
|
help_text='Port type'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2520,6 +2522,7 @@ class PowerPortCSVForm(CSVModelForm):
|
|||||||
)
|
)
|
||||||
type = CSVChoiceField(
|
type = CSVChoiceField(
|
||||||
choices=PowerPortTypeChoices,
|
choices=PowerPortTypeChoices,
|
||||||
|
required=False,
|
||||||
help_text='Port type'
|
help_text='Port type'
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2644,6 +2647,7 @@ class PowerOutletCSVForm(CSVModelForm):
|
|||||||
)
|
)
|
||||||
type = CSVChoiceField(
|
type = CSVChoiceField(
|
||||||
choices=PowerOutletTypeChoices,
|
choices=PowerOutletTypeChoices,
|
||||||
|
required=False,
|
||||||
help_text='Outlet type'
|
help_text='Outlet type'
|
||||||
)
|
)
|
||||||
power_port = CSVModelChoiceField(
|
power_port = CSVModelChoiceField(
|
||||||
|
Loading…
Reference in New Issue
Block a user