Use signals:
 https://docs.djangoproject.com/en/dev/topics/signals/

post_save check the amount deposited or withdrawn and update the balance

On Thursday, October 3, 2013 9:42:48 AM UTC-5, MAurice wrote:
>
> Am creating this project in that a client has an account in a 
> micro-finance and can also Take Loans which loan is credited onto this very 
> account.
> The problem is am trying to find a way of having an Account_balance which 
> will be changing when deposits and withdrawals are made to the account
> and also when loan payments are made. These are supposed to be reflected 
> on the account statement. am having issues with this account_balance being 
> updated
> Thanks
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a13ccfd8-d34d-42a2-88ea-54d687e806b9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to