Skip to content

Optional[int] raise error if missing #261

Open
@dusking

Description

@dusking

If I have a model with the following field:
number: Optional[int]

I can create a record without the number. But, when I'll call model.get(pk) - I'll get an error:
value is not a valid integer (type=type_error.integer)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions