Skip to content

SerializerMethodField.read_only is True by default #2

Description

@djshen-ponddy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions