Blog-API-with-Django-Rest-Framework icon indicating copy to clipboard operation
Blog-API-with-Django-Rest-Framework copied to clipboard

SerializerMethodField.read_only is True by default

Open djshen-ponddy opened this issue 8 years ago • 0 comments

https://github.com/tomchristie/django-rest-framework/blob/300e46a9e5798ca56f56ba231de3d3fded860551/rest_framework/fields.py#L1722

We don't need to declare the field names of SerializerMethodField instances in read_only_fields

djshen-ponddy avatar Feb 18 '17 16:02 djshen-ponddy