google-code-export / django-values

Automatically exported from code.google.com/p/django-values
1 stars 1 forks source link

Decimal fields #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since you're depending on revision 5302, might as well make use of it! :)

The attached patch adds `DecimalValue` and modifies `PercentValue` to use a
newforms `DecimalField` behind the scenes.

I needed to make these changes as:

1. I didn't want to have to store financial settings as floats.
2. I needed to set a percentage setting to 17.5%, which was impossible to
put into the existing `PercentValue`.

Regards,
Jonathan.

Original issue reported on code.google.com by jonathan.buchanan on 14 Jul 2007 at 2:00

Attachments:

GoogleCodeExporter commented 9 years ago
I had considered a DecimalValue, and intended to make PercentValue 
decimal-aware, I 
just hadn't gotten around to either of them yet. Your patch makes quick work of 
both, thanks! These are now included.

Original comment by gulop...@gmail.com on 17 Jul 2007 at 1:50