CollectionMemberSerializer: change the user field to be read only.

master
Tom Hacohen 4 years ago
parent 41a03e9d3b
commit 9ea01d4d93

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

Loading…
Cancel
Save