Skip to content

Commit 092f2b0

Browse files
authored
Enhance Virtual Machine and Device Platform Filter with Manufacturer Information (netbox-community#14047)
* Add manufacturer for filters in the virtual machine and device netbox-community#12741 * reverse the filtersets of device and vm * revert the filtersets of vm * add advance selector in platform * remove manufacture from imports
1 parent 6900097 commit 092f2b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

netbox/dcim/forms/model_forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,8 @@ class DeviceForm(TenancyForm, NetBoxModelForm):
442442
platform = DynamicModelChoiceField(
443443
label=_('Platform'),
444444
queryset=Platform.objects.all(),
445-
required=False
445+
required=False,
446+
selector=True
446447
)
447448
cluster = DynamicModelChoiceField(
448449
label=_('Cluster'),

netbox/virtualization/forms/model_forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ class VirtualMachineForm(TenancyForm, NetBoxModelForm):
200200
platform = DynamicModelChoiceField(
201201
label=_('Platform'),
202202
queryset=Platform.objects.all(),
203-
required=False
203+
required=False,
204+
selector=True
204205
)
205206
local_context_data = JSONField(
206207
required=False,

0 commit comments

Comments
 (0)