Skip to content
Snippets Groups Projects
Verified Commit ffca67ef authored by Eliot Berriot's avatar Eliot Berriot
Browse files

FIxed issue with AP actors without attachments

parent 975e2aac
No related branches found
No related tags found
No related merge requests found
......@@ -55,5 +55,7 @@ class ActorSerializer(serializers.Serializer):
id = serializers.URLField()
summary = serializers.CharField(required=False)
url = serializers.URLField(required=False)
attachment = serializers.ListField(child=AttachmentSerializer(), min_length=1)
attachment = serializers.ListField(
child=AttachmentSerializer(), min_length=0, required=False
)
tag = serializers.ListField(child=TagSerializer(), min_length=0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment