mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Force custom field values to strings for object change serialization
This commit is contained in:
parent
c9cc41cc5b
commit
db78e2c3be
@ -97,7 +97,7 @@ def serialize_object(obj, extra=None):
|
||||
# Include any custom fields
|
||||
if hasattr(obj, 'get_custom_fields'):
|
||||
data['custom_fields'] = {
|
||||
field.name: value for field, value in obj.get_custom_fields().items()
|
||||
field.name: str(value) for field, value in obj.get_custom_fields().items()
|
||||
}
|
||||
|
||||
# Include any tags
|
||||
|
Loading…
Reference in New Issue
Block a user