[Answered ]-Django REST Framework how to limit user access to certain serializer field

2👍

you can make group write only in QuestionSerializer like:

class QuestionSerializer(ModelSerializer):
    class Meta:
        model = Question
        fields = ('text','group')
        extra_kwargs = {'group': {'write_only': True}}

learn more here

Leave a comment