1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Documentation cleanup

This commit is contained in:
jeremystretch
2022-07-11 17:29:25 -04:00
parent 2264937f81
commit 1ddb219a0c
9 changed files with 45 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ def get_snapshots(instance, action):
'postchange': None,
}
if action != ObjectChangeActionChoices.ACTION_DELETE:
# Use model's serialize() method if defined; fall back to serialize_object
# Use model's serialize_object() method if defined; fall back to serialize_object() utility function
if hasattr(instance, 'serialize_object'):
snapshots['postchange'] = instance.serialize_object()
else: