mirumee / prices

Python price handling for humans.
Other
268 stars 39 forks source link

Add as_tuple method that represents a decimal value #16

Closed bogdal closed 8 years ago

bogdal commented 8 years ago

Price object is the default value of PriceField, whose Django validates as a DecimalField using DecimalValidator. This PR allows Price to pass the test.

patrys commented 8 years ago

Why price.net? Why not?

codecov-io commented 8 years ago

Current coverage is 93.17%

Branch #16 has no coverage reports uploaded yet.

No diff could be generated. No reports for master found. Review entire Coverage Diff as of 62b03f0

Powered by Codecov. Updated on successful CI builds.

bogdal commented 8 years ago

Because net value is represented by PriceField.

bogdal commented 8 years ago

We don't need this change anymore. See https://github.com/mirumee/django-prices/pull/24#issuecomment-156687160