medhat wrote:
> Ian Clelland wrote:
> > > 3. I am still looking for an answer to my original question at the
> > > beginning of this discussion. What if I don't want to delete the
> > > tickets but assign them to another user?
> >
> > Was that the original question?
> >
> > All I saw was:
> >
> > On 8/17/06, medhat <[EMAIL PROTECTED]> wrote:
> > > I would like to delete all the tickets created by a user if that user is
> > > deleted. Is there a way to do this *without* changing the user model?
>
> Well, I am sorry... after reading my post again, I found that it
> sounded a bit harsh. Anyway, the question I refered to is the subject
> of the discussion which can be paraphrased: "can I get some kind of
> notification when an object is deleted?" After reading all the
> responses it seems that I can't, and that I will need to create the
> custom view. I was just hoping to do it all from the admin. I was
> hoping dispatchers can be used for this (my only knowledge of
> dispatchers is how I use them to creat objects when syncdb is called)
>
> --
> Thanks,
> Medhat

Ok, I digged a little deeper in the code... and it seems that I *can*
use dispatchers for that, since in django.db.models.signals there is a
"pre_delete" and a "post_delete" signal defined. The only thing is that
I don't see these signals sent to the dispatcher in
django.db.models.base. Is this a bug? or am I missing something? If it
is I will file a ticket.


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

Reply via email to