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

#10270 - fix custom field validation for ipam services

This commit is contained in:
Arthur
2022-09-07 08:45:56 -07:00
parent ac8f0a7ef2
commit 7826cfb01f

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']