Skip to content

Contradictory read_only and required arguments on a m2m through field with uniqueness constraint. #2813

@mitchellrj

Description

@mitchellrj

If a field is made read_only by DRF automatically by virtue of being a relation with a through-class and the field is also made required automatically by virtue of being used in a uniqueness constraint, the read_only and required arguments clash due to ModelSerializer.include_extra_kwargs only checking for read_only in extra_kwargs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy