Opened 16 years ago
Last modified 13 years ago
#10692 closed
DecimalField raises "InvalidOperation: Rescale > prec" — at Version 1
Reported by: | krylatij | Owned by: | Gary Wilson |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Create simple model:
class Test(models.Model): area = models.DecimalField(default=0, max_digits=7, decimal_places=2)
run:
Test.objects.filter(area__lte=1000000000)
it will raise InvalidOperation: Rescale > prec
in decimal.py
Change History (1)
comment:1 by , 16 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.