Explorar o código

Fixes #2314: Serialized representation of object in change log does not incldue assigned tags

Jeremy Stretch %!s(int64=7) %!d(string=hai) anos
pai
achega
1905516536
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      netbox/utilities/utils.py

+ 2 - 2
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: