m2m_changed signal can not distinguish between existing and newly added instances

2012-06-08 Thread vijay shanker
hi i have this model Client_Order i want to do some manipulation each time a new pakg is added to this field. i used m2m_changed signal, but it cant distinguish between existing instances attached and the newly added ones. both post_add and pre_add show the same number of instances .. i.e if a.b w

Re: m2m_changed signal can not distinguish between existing and newly added instances

2013-02-07 Thread vijay shanker
well .. odd .. replying my own post .. kwargs['action'] A string indicating the type of update that is done on the relation. This can be one of the following: "pre_add"Sent *before* one or more objects are added to the relation. "post_add"Sent *after* one or more objects are added to the relati