Make _calculate_price available via utils.py

Bug #678246 reported by Martin Fitzpatrick on 2010-11-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-currencies
Wishlist
Panos Laganakos

Bug Description

It would be helpful to have access to the _calculate_price function in a more accessible location for use in other models (on the fly conversion etc.) Please move the _calculate_price function to utils.py or similar.

Not a big issue but prevents ugly referencing into a private function / wraparound functions. Thanks

Panos Laganakos (panosl) wrote :

It didn't seem at the time that it would be useful outside of the templatetags, but if it's helpful to you anyone who wishes to make use of it, I'll make it more accessible.

Changed in django-currencies:
assignee: nobody → Panos Laganakos (panosl)
importance: Undecided → Wishlist
status: New → Confirmed
Martin Fitzpatrick (mfitzp) wrote :

Thanks Panos, much appreciated.

Panos Laganakos (panosl) wrote :

Martin, please check rev. 13, and see if this works for you.

Panos Laganakos (panosl) on 2010-11-22
Changed in django-currencies:
status: Confirmed → Fix Committed
Panos Laganakos (panosl) on 2010-12-03
Changed in django-currencies:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers