Re: cascade deletion happens before pre_delete signal is sent?

2010-05-05 Thread msoulier
On Apr 3, 6:23 pm, Tomasz Zieliński wrote: > I believe that this question was asked on this group a long time ago, > and the answer was that pre_delete signal was fired *before* actual > deletion occured, > but *after* objects were collected for deletion (i.e. after list of > objects that were to

Re: cascade deletion happens before pre_delete signal is sent?

2010-04-03 Thread Tomasz Zieliński
On 3 Kwi, 16:05, msoulier wrote: > I have a model A, which has a ForeignKey to model B. > > A --> B > > When B is deleted I want to save the As that are pointing at B by > repointing them at a different B if possible. To do this I have a > pre_delete signal registered for B models. Unfortuna

cascade deletion happens before pre_delete signal is sent?

2010-04-03 Thread msoulier
I have a model A, which has a ForeignKey to model B. A --> B When B is deleted I want to save the As that are pointing at B by repointing them at a different B if possible. To do this I have a pre_delete signal registered for B models. Unfortunately does doesn't work. Django follows the rela