1
0
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:
Jeremy Stretch
2019-10-22 14:36:30 -04:00
parent f21a63382c
commit ccb9f7bfe2
5 changed files with 114 additions and 54 deletions

View File

@ -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