Re: Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread MerMer
Zak, Many thanks - exactly what's required. In hindsight its so obvious - I don't know why I was making such heavy weather of it! Cheers MerMer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread Zak Johnson
MerMer wrote: > I must be making some rookie mistake, but I can't work out why its not > working. The code fails to return anything for the line p_qs= > Promotion.objects.filter(id=promotion_id) and therefore the index on > the next line is out of bounds. > > def update_review_average(sender,ins

Signal Code Failing - Can anybody see where I've gone wrong.

2006-10-19 Thread MerMer
I am trying to update a Promotion field through a signal sent when a Review field is updated. Review has a many-to-one relationship with Promotion. I must be making some rookie mistake, but I can't work out why its not working. The code fails to return anything for the line p_qs= Promotion.ob