django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

doesn't support read_only_fields in serializer

Open efazati opened this issue 8 years ago • 0 comments

I have serializer and Django rest docs doesn't understand read_only_fields for example:

class SampleSerializer(serializers.ModelSerializer):
    class Meta:
        model = Wallet
        fields = ('id', 'name', 'owner')
        read_only_fields = ('id','owner')

efazati avatar Jun 19 '17 08:06 efazati