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

Fixes #4168: Role is not required when creating a virtual machine

This commit is contained in:
Jeremy Stretch
2020-02-14 09:13:05 -05:00
parent 598d23fc03
commit 1d72436bfc
2 changed files with 9 additions and 0 deletions

View File

@ -351,6 +351,7 @@ class VirtualMachineForm(BootstrapMixin, TenancyForm, CustomFieldModelForm):
)
role = DynamicModelChoiceField(
queryset=DeviceRole.objects.all(),
required=False,
widget=APISelect(
api_url="/api/dcim/device-roles/",
additional_query_params={