mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Merge e5eb61a85c
into ab37264ae1
This commit is contained in:
commit
326018f799
@ -101,7 +101,7 @@ def serialize_object(obj, extra=None):
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Include any tags
|
# Include any tags
|
||||||
if hasattr(obj, 'tags'):
|
if hasattr(obj, 'tags') and obj.tags:
|
||||||
data['tags'] = [tag.name for tag in obj.tags.all()]
|
data['tags'] = [tag.name for tag in obj.tags.all()]
|
||||||
|
|
||||||
# Append any extra data
|
# Append any extra data
|
||||||
|
Loading…
Reference in New Issue
Block a user