mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Rewrote ObjectChangeMiddleware to remove the curried handle_deleted_object() function
This commit is contained in:
@ -99,7 +99,7 @@ def serialize_object(obj, extra=None):
|
||||
# Include any custom fields
|
||||
if hasattr(obj, 'get_custom_fields'):
|
||||
data['custom_fields'] = {
|
||||
field.name: str(value) for field, value in obj.get_custom_fields().items()
|
||||
field: str(value) for field, value in obj.cf.items()
|
||||
}
|
||||
|
||||
# Include any tags
|
||||
|
Reference in New Issue
Block a user