CollectionMemberSerializer: change the user field to be read only.
parent
41a03e9d3b
commit
9ea01d4d93
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue