Просмотр исходного кода

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

Jeremy Stretch 7 лет назад
Родитель
Сommit
1905516536
1 измененных файлов с 2 добавлено и 2 удалено
  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: