AFAIK, related models are not deleted by invoking delete().

A better way to recognize deletion is the use of signals, i.e.
pre_delete and post_delete

http://code.djangoproject.com/wiki/Signals

Hope that helps.

Regards,
Daniel

Am Dienstag, den 17.06.2008, 02:54 -0700 schrieb Daniel Austria:
> Hi there,
> 
> got a Problem. Maybe someone knows a solution.
> 
> I have a model Data which is linked via a foreignkey to the model
> Participant.
> I have overwritten the delete() Method in the model Data.
> When i delete a instance of Data via the Admin-Interface, delete() is
> called appropriately.
> When i delete a instance of Participant, all related Data instances
> are delete too (like it should) but delete() is not called ....
> 
> Strange. What should i do to recognize, that a Data instance is
> deleted?
> 
> regards,
> Dan
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to