mirror of
https://github.com/lucaspalomodevelop/netbox.git
synced 2026-03-14 00:04:35 +00:00
#10270 - fix custom field validation for ipam services
This commit is contained in:
parent
ac8f0a7ef2
commit
7826cfb01f
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user