Opened 15 years ago

Last modified 13 years ago

#10692 closed

DecimalField raises "InvalidOperation: Rescale > prec" — at Initial Version

Reported by: krylatij Owned by: nobody
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

Create simple model:

class Test(models.Model):

area = models.DecimalField(default=0, max_digits=7, decimal_places=2)

run:
Test.objects.filter(arealte=1000000000)

it will raise InvalidOperation: Rescale > prec in decimal.py

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top