This commit is contained in:
Zach Moody 2018-08-02 19:06:53 +00:00 committed by GitHub
commit 326018f799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ def serialize_object(obj, extra=None):
}
# Include any tags
if hasattr(obj, 'tags'):
if hasattr(obj, 'tags') and obj.tags:
data['tags'] = [tag.name for tag in obj.tags.all()]
# Append any extra data