Skip to content

Commit fdf4286

Browse files
authored
Merge pull request #19282 from netbox-community/19281-fix-service-templates
Fixes #19281: Fix service template creation form
2 parents b31da39 + deaff2d commit fdf4286

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netbox/ipam/forms/model_forms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def __init__(self, *args, **kwargs):
840840
# Fields which may be populated from a ServiceTemplate are not required
841841
for field in ('name', 'protocol', 'ports'):
842842
self.fields[field].required = False
843+
self.fields[field].widget.is_required = False
843844

844845
def clean(self):
845846
super().clean()

0 commit comments

Comments
 (0)