Make _calculate_price available via utils.py

Bug #678246 reported by Martin Fitzpatrick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
django-currencies
Fix Released
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

Revision history for this message
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
Revision history for this message
Martin Fitzpatrick (mfitzp) wrote :

Thanks Panos, much appreciated.

Revision history for this message
Panos Laganakos (panosl) wrote :

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

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.