Merge pull request #10283 from netbox-community/10270-save-custom-boolean

#10270 - fix custom field validation for IPAM services
This commit is contained in:
Jeremy Stretch 2022-09-07 13:54:24 -04:00 committed by GitHub
commit ef5ec06141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -854,6 +854,7 @@ class ServiceCreateForm(ServiceForm):
del self.fields[field].widget.attrs['required']
def clean(self):
super().clean()
if self.cleaned_data['service_template']:
# Create a new Service from the specified template
service_template = self.cleaned_data['service_template']