You are using self.loan_amount, which is an attribute, as a function:
self.load_amount().
I suspect there is a missing sign (+-*/) between self.loan_amount and the
following (
May you confirm this?

Leo



Leonardo Giordani
Author of The Digital Cat <http://lgiordani.github.com>
My profile on About.me <http://about.me/leonardo.giordani> - My GitHub
page<https://github.com/lgiordani>- My Coderwall
profile <https://coderwall.com/lgiordani>


2013/9/19 Maurice J Elagu <mjose...@gmail.com>

> # line 264 is the formula for compound interest
>
> self.required_payment =self.loan_amount
> ((1+((self.interest_rate/self.compound_period)/100))**(self.compound_period
> * self.time_years))
>
>
> On Thu, Sep 19, 2013 at 4:18 PM, Leonardo Giordani <
> giordani.leona...@gmail.com> wrote:
>
>> Ok, can you report the content of
>> /home/maurice/Desktop/django/Servant/Dashboard/models.py around line 264?
>> Your error is there.
>>
>> Simply paste the output of "nl models.py | grep 264 -C 20"
>>
>> Regards
>>
>> PS: Rember to reply to the list =)
>>
>>
>> Leonardo Giordani
>> Author of The Digital Cat <http://lgiordani.github.com>
>> My profile on About.me <http://about.me/leonardo.giordani> - My GitHub
>> page <https://github.com/lgiordani> - My Coderwall 
>> profile<https://coderwall.com/lgiordani>
>>
>>
>> 2013/9/19 Maurice J Elagu <mjose...@gmail.com>
>>
>>>  TypeError at /admin/Dashboard/loan/add/
>>>
>>> 'Decimal' object is not callable
>>>
>>> Request Method: POSTRequest URL:
>>> http://127.0.0.1:8777/admin/Dashboard/loan/add/ Django 
>>> Version:1.3.1Exception Type:
>>> TypeError Exception Value:
>>>
>>> 'Decimal' object is not callable
>>>
>>> Exception Location:/home/maurice/Desktop/django/Servant/Dashboard/models.py
>>> in save, line 264 Python Executable: /usr/bin/pythonPython 
>>> Version:2.7.3Python
>>> Path:
>>>
>>> ['/home/maurice/Desktop/django/Servant',
>>>  '/usr/lib/python2.7',
>>>  '/usr/lib/python2.7/plat-linux2',
>>>  '/usr/lib/python2.7/lib-tk',
>>>  '/usr/lib/python2.7/lib-old',
>>>  '/usr/lib/python2.7/lib-dynload',
>>>  '/usr/local/lib/python2.7/dist-packages',
>>>  '/usr/lib/python2.7/dist-packages',
>>>  '/usr/lib/python2.7/dist-packages/PIL',
>>>  '/usr/lib/python2.7/dist-packages/gst-0.10',
>>>  '/usr/lib/python2.7/dist-packages/gtk-2.0',
>>>  '/usr/lib/pymodules/python2.7',
>>>  '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-client',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-couch',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-installer',
>>>  '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
>>>  '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
>>>
>>> Server time:Wed, 18 Sep 2013 12:17:34 +0300
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to