Hello, 

I'm new to Django and trying to learn it by making a simple budget/checkbook 
application. 

I apologize for my ignorance, but I couldn't seem to find an answer to this on 
Google or the Django docs from my searches. 

I want to create a function that will take a bank account as an id number 
(assumed to already exist), and the payee/amount. From there, the function will 
do a typical bank transaction: 1) add the entry to the "Ledger" table, and 
subtract the amount from the "balance" field of the "Account" table for the 
account referenced in the id number passed to the function. 

Where is the appropriate/intended place to put that type of function? Model, 
Manager, View, or somewhere completely different? 

My best guess is that it belongs in a Manager, but all of the examples I can 
find seem to indicate that Managers are intended for queries. 

Thanks in advance, 

Kris 



-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to