mirumee / django-prices

Django fields for the prices module
158 stars 53 forks source link

fixed format_value to display properly #52

Closed dedayoa closed 6 years ago

dedayoa commented 6 years ago

Display proper Amount value in html input field

patrys commented 6 years ago

Huh, it seems that there's PriceField that handles Prices where it should be replaced by an AmountField that handles Amounts. There's no good way to handle a Price object with a single input.

dedayoa commented 6 years ago

@patrys but that's not the case - at least not obviously. I am aware of the changes to both prices and django-prices (between 0.X.X and the 1.0) and have updated my code appropriately...but still have the issues I'm trying to remedy crop up.

patrys commented 6 years ago

I know, I'm commenting on the current state of django-prices, not your change. I think we need to rework the fields and widgets exposed to the UI.

rafalp commented 6 years ago

Hey @dedayoa! Thank you for reporting the issue and taking time to come up with the fix!

We've just released 1.0.0 beta 3 that includes fix as part of its changes.