mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-16 15:16:46 +01:00
Fixes #19281: Fix service template creation form
This commit is contained in:
@@ -840,6 +840,7 @@ class ServiceCreateForm(ServiceForm):
|
||||
# Fields which may be populated from a ServiceTemplate are not required
|
||||
for field in ('name', 'protocol', 'ports'):
|
||||
self.fields[field].required = False
|
||||
self.fields[field].widget.is_required = False
|
||||
|
||||
def clean(self):
|
||||
super().clean()
|
||||
|
||||
Reference in New Issue
Block a user