Skip to content

IntegerField.to_internal_value coerces decimal to integer; should fail #2835

Closed
@bradford281

Description

@bradford281

The to_internal_value method coerces data to an int, so when a float/decimal is passed, the int value is saved, rather than raising an exception.

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