From 7eb08d29462d6e663d5af57795fe1ed3f7b21652 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 22 Dec 2020 21:06:41 +0200 Subject: [PATCH] Collection invitation: fix the wrong field type --- django_etebase/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_etebase/serializers.py b/django_etebase/serializers.py index 24d78a4..1e5c78e 100644 --- a/django_etebase/serializers.py +++ b/django_etebase/serializers.py @@ -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()