Fixes #18363: Fix assignment of MAC addresses to interfaces via REST API

This commit is contained in:
Jeremy Stretch 2025-01-09 12:31:27 -05:00
parent 4090afbf24
commit 91562b205a

View File

@ -170,8 +170,8 @@ class MACAddressSerializer(NetBoxModelSerializer):
class Meta:
model = MACAddress
fields = [
'id', 'url', 'display_url', 'display', 'mac_address', 'assigned_object_type', 'assigned_object',
'description', 'comments',
'id', 'url', 'display_url', 'display', 'mac_address', 'assigned_object_type', 'assigned_object_id',
'assigned_object', 'description', 'comments',
]
brief_fields = ('id', 'url', 'display', 'mac_address', 'description')