Skip to content

Should Field and FormField also serialise value? #143

@eigenein

Description

@eigenein

At the moment, we simply assign the value:

def __call__(self, request: ContainsPayload, value: Any) -> None: # noqa: D102
if request.payload is None:
request.payload = {}
request.payload[self.name] = value.value if isinstance(value, Enum) else value

  1. Should we maybe serialize value as well?
  2. If yes, should we also deal with the code duplication across Payload, Field, FormData, and FormField?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions