2
0
Эх сурвалжийг харах

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

Jeremy Stretch 7 жил өмнө
parent
commit
1905516536

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