Re: Exception Value: 'Decimal' object is not callable dont no where this is coming from, Any help will be kindly appreciated

2013-09-19 Thread MAurice
On Wednesday, September 18, 2013 1:07:57 AM UTC+3, MAurice wrote: > > class Loan(models.Model): > id = models.AutoField(primary_key=True,default=1) > loan_type =models.CharField(max_length=20, > choices=LTYPE,default=1) > def number(): > no

Re: Exception Value: 'Decimal' object is not callable dont no where this is coming from, Any help will be kindly appreciated

2013-09-18 Thread Leonardo Giordani
Hi Maurice, where do you get this exception? Do you have a Django debug page as output? Are you calling a view? Can you paste its code? Leo Leonardo Giordani Author of The Digital Cat My profile on About.me - My GitHub

Exception Value: 'Decimal' object is not callable dont no where this is coming from, Any help will be kindly appreciated

2013-09-17 Thread MAurice
class Loan(models.Model): id = models.AutoField(primary_key=True,default=1) loan_type =models.CharField(max_length=20, choices=LTYPE,default=1) def number(): no =Account.objects.count() if no == None: return