DecimalField allows invalid default values.
|Reported by:||ShawnMilo||Owned by:||ShawnMilo|
|Component:||Database layer (models, ORM)||Version:||1.3|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
For example, a float may be passed in a DecimalField instantiation. This "works" because get_default coerces to unicode.
Change History (8)
comment:1 Changed 5 years ago by aaugustin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
Changed 5 years ago by ShawnMilo
comment:4 follow-up: ↓ 5 Changed 5 years ago by ShawnMilo
- Triage Stage changed from Accepted to Design decision needed