Explorar el Código

DeviceForm.manufacturer should not be a required field

Jeremy Stretch hace 6 años
padre
commit
c14496d0c4
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      netbox/dcim/forms.py

+ 1 - 0
netbox/dcim/forms.py

@@ -1549,6 +1549,7 @@ class DeviceForm(BootstrapMixin, TenancyForm, CustomFieldModelForm):
     )
     manufacturer = forms.ModelChoiceField(
         queryset=Manufacturer.objects.all(),
+        required=False,
         widget=APISelect(
             api_url="/api/dcim/manufacturers/",
             filter_for={