IntegerField.to_internal_value coerces decimal to integer; should fail · Issue #2835 · encode/django-rest-framework (original) (raw)
Description
opened
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