Ok gotcha :)

I ran the following:

print user.tariff.monthly_fee.__class__, user.balance.__class__

and got the output:

<class 'decimal.Decimal'> <type 'float'>

Then i did some more investigation and found that tariff.monthly_fee is
actually defined in mysql as `monthly_fee` decimal(10,2) NOT NULL
default '0.00', but Django's types of both fields are the same as I
wrote before.

Is any more debugging required ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to