codingforentrepreneurs / Blog-API-with-Django-Rest-Framework

Blog API with Django Rest Framework
MIT License
356 stars 173 forks source link

SerializerMethodField.read_only is True by default #2

Open djshen-ponddy opened 7 years ago

djshen-ponddy commented 7 years ago

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