#32793: Problem with decimal field when upgrade version
-------------------------------------+-------------------------------------
Reporter: Mohsen Tamiz | Owner: Mariusz
| Felisiak
Type: Bug | Status: assigned
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: decimal | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* owner: nobody => Mariusz Felisiak
* status: new => assigned
Comment:
I noticed that the same test but with `f.amount = F('amount') -
Decimal(0.4)` (no parentheses) crashes on MySQL:
{{{
File "/tests/django/django/db/backends/utils.py", line 238, in
format_number
value = context.create_decimal(value)
decimal.Rounded: [<class 'decimal.Rounded'>]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32793#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.2da202fd5d46ae900ff929bb3dbe76b2%40djangoproject.com.