tickets: 6501
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6501 | 2008-01-28 16:50:22 | 2008-01-28 17:40:07 | 2022-03-06 03:37:18.566390 | Unreviewed | closed | Database layer (models, ORM) | dev | duplicate | DecimalField does not correctly set default value | !DecimalField's {{{default}}} argument appears to set the field to a unicode rather than a Decimal instance, this then makes calculations involving Decimals not work. I've attached a small models.py file that can be used to check the behaviour, including expected results and the actual ones. There's a smallish bug that {{{Decimal("0.00")}}} doesn't retain its precision on loading, but this may be a python bug. | nobody | Moof | 0 | 1 | 0 | 1 | 0 | 0 |