CollectionMemberSerializer: change the user field to be read only.

This commit is contained in:
Tom Hacohen 2020-07-13 11:15:42 +03:00
parent 41a03e9d3b
commit 9ea01d4d93

View File

@ -255,7 +255,7 @@ class CollectionMemberSerializer(serializers.ModelSerializer):
username = serializers.SlugRelatedField(
source='user',
slug_field=User.USERNAME_FIELD,
queryset=User.objects
read_only=True,
)
class Meta: