Re: How to show only 2 decimal places in my view?

2008-11-25 Thread Rishabh Manocha
On Wed, Nov 26, 2008 at 9:59 AM, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have the following code: > > /// > > b = Choice.objects.filter(choice=a.collection.id) >for cb in b: >discount_price = cb.price.name * Decimal(str(.75)) >cb.price.name = discount_price >asse

How to show only 2 decimal places in my view?

2008-11-25 Thread Greg
Hello, I have the following code: /// b = Choice.objects.filter(choice=a.collection.id) for cb in b: discount_price = cb.price.name * Decimal(str(.75)) cb.price.name = discount_price assert False, cb.price.name /// Basically I'm just decreasing my price by 25%. How