Add is_primary field for bulk edit

This commit is contained in:
Brian Tiemann 2024-11-14 16:19:24 -05:00
parent 57bc1887bc
commit b0663305b7

View File

@ -1284,11 +1284,16 @@ class MACAddressBulkEditForm(NetBoxModelBulkEditForm):
max_length=200,
required=False
)
is_primary = forms.NullBooleanField(
label=_('Is primary'),
required=False,
widget=BulkEditNullBooleanSelect(),
)
comments = CommentField()
model = MACAddress
fieldsets = (
FieldSet('description'),
FieldSet('description', 'is_primary'),
)
nullable_fields = (
'description', 'comments',