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

@ -1,3 +1,11 @@
# v2.7.7 (FUTURE)
## Bug Fixes
* [#4168](https://github.com/netbox-community/netbox/issues/4168) - Role is not required when creating a virtual machine
---
# v2.7.6 (2020-02-13)
## Bug Fixes

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={