Explorar o código

DeviceForm.manufacturer should not be a required field

Jeremy Stretch %!s(int64=6) %!d(string=hai) anos
pai
achega
c14496d0c4
Modificáronse 1 ficheiros con 1 adicións e 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={