IntegerField.to_internal_value coerces decimal to integer; should fail · Issue #2835 · encode/django-rest-framework (original) (raw)

@bradford281

Description

@bradford281

bradford281

opened

on Apr 17, 2015

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