1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #5356: Populate manufacturer field when adding a device component template

This commit is contained in:
Jeremy Stretch
2020-11-17 16:30:58 -05:00
parent f2bc6f0f96
commit a05fc091c8
2 changed files with 5 additions and 1 deletions

View File

@ -1034,7 +1034,10 @@ class ComponentTemplateCreateForm(ComponentForm):
"""
manufacturer = DynamicModelChoiceField(
queryset=Manufacturer.objects.all(),
required=False
required=False,
initial_params={
'device_types': 'device_type'
}
)
device_type = DynamicModelChoiceField(
queryset=DeviceType.objects.all(),