Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Fixed DecimalField arbitrary precision support#4075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jpadilla commentedApr 27, 2016
@dvarrazzo good stuff, thanks! Anyone else has any objections/comments? |
lovelydinosaur commentedApr 27, 2016
Good stuff 👍 |
glarrain commentedNov 29, 2016
@dvarrazzo@jpadilla@tomchristie is On the other hand, why are args |
DecimalFieldhas some support for non strict number of decimal places (checking here and there thatdecimal_placesis not None but it fails inquantize()with "unsupported operand type(s) for ** or pow(): 'Decimal' and 'NoneType'".This changeset fixes the problem and allows
DecimalFieldto handledecimal_places=None. Tests added too.