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, max_length=200,
required=False required=False
) )
is_primary = forms.NullBooleanField(
label=_('Is primary'),
required=False,
widget=BulkEditNullBooleanSelect(),
)
comments = CommentField() comments = CommentField()
model = MACAddress model = MACAddress
fieldsets = ( fieldsets = (
FieldSet('description'), FieldSet('description', 'is_primary'),
) )
nullable_fields = ( nullable_fields = (
'description', 'comments', 'description', 'comments',