CollectionMemberSerializer: change the user field to be read only.
This commit is contained in:
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…
Reference in New Issue
Block a user