From 1905516536d2440985a43bcf628347da8a26ff5d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 7 Aug 2018 08:52:57 -0400 Subject: [PATCH] Fixes #2314: Serialized representation of object in change log does not incldue assigned tags --- netbox/utilities/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/utilities/utils.py b/netbox/utilities/utils.py index 2ba5fa4ba..14c29d211 100644 --- a/netbox/utilities/utils.py +++ b/netbox/utilities/utils.py @@ -101,8 +101,8 @@ def serialize_object(obj, extra=None): } # Include any tags - # if hasattr(obj, 'tags'): - # data['tags'] = [tag.name for tag in obj.tags.all()] + if hasattr(obj, 'tags'): + data['tags'] = [tag.name for tag in obj.tags.all()] # Append any extra data if extra is not None: