Collection invitation: fix the wrong field type

This commit is contained in:
Tom Hacohen 2020-12-22 21:06:41 +02:00
parent 1cb84cfa6d
commit 7eb08d2946

View File

@ -386,7 +386,7 @@ class CollectionInvitationSerializer(BetterErrorsMixin, serializers.ModelSeriali
style={"base_template": "input.html"},
)
collection = serializers.CharField(source="collection.uid")
fromUsername = BinaryBase64Field(source="fromMember.user.username", read_only=True)
fromUsername = serializers.CharField(source="fromMember.user.username", read_only=True)
fromPubkey = BinaryBase64Field(source="fromMember.user.userinfo.pubkey", read_only=True)
signedEncryptionKey = BinaryBase64Field()