Re: iteration of query set appears to fail when running function directly from interpretor

2007-02-15 Thread Merric Mercer
Apologies, for wasting time the problem was with the line. Couldn't see the wood for the trees! debit = credit + i.debit should read debit = debit + i.debit MerMer Benedict Verheyen wrote: > Merric Mercer schreef: > >> Benedict, >> >> Unfortunately, that is just a typo in my post an

Re: iteration of query set appears to fail when running function directly from interpretor

2007-02-15 Thread Benedict Verheyen
Merric Mercer schreef: > Benedict, > > Unfortunately, that is just a typo in my post and not the answer. The > actual code has 'for i in qset'. > > The code runs without displaying any errors. But when I check the > "UserPointTypeAggregate" database the field has > only been updated from the

Re: iteration of query set appears to fail when running function directly from interpretor

2007-02-15 Thread Merric Mercer
Benedict, Unfortunately, that is just a typo in my post and not the answer. The actual code has 'for i in qset'. The code runs without displaying any errors. But when I check the "UserPointTypeAggregate" database the field has only been updated from the first record of the PointTransaction qu

Re: iteration of query set appears to fail when running function directly from interpretor

2007-02-15 Thread Benedict Verheyen
Merric Mercer schreef: > Help! I have a function that is provided below. When I try the > individual lines of the function through the interpretor (Ipython) > everything works as expected. For example:- > > >> qset=PointTransaction.objects.filter etc this works fine!! > > However

iteration of query set appears to fail when running function directly from interpretor

2007-02-14 Thread Merric Mercer
Help! I have a function that is provided below. When I try the individual lines of the function through the interpretor (Ipython) everything works as expected. For example:- >> qset=PointTransaction.objects.filter etc this works fine!! However, when I try to run the function as a