Opened 15 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 Gary Wilson)

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 Gary Wilson, 15 years ago

Description: modified (diff)
Owner: changed from nobody to Gary Wilson
Status: newassigned
Note: See TracTickets for help on using tickets.
Back to Top