Re: notification when an object is deleted

2006-08-19 Thread medhat
> > 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 >

Re: notification when an object is deleted

2006-08-19 Thread medhat
arsh. 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 t

Re: notification when an object is deleted

2006-08-18 Thread medhat
Ian Clelland wrote: > I would have thought that this would have been automatic -- normally > Django does a good job of telling me, when I delete an object, about > any other objects related to it which will also be deleted. Ok, I am sorry, but I am still confused! :( First, I am using sqlite...

Re: notification when an object is deleted

2006-08-17 Thread Ian Clelland
On 8/17/06, medhat <[EMAIL PROTECTED]> wrote: > A ticket system where users can create tickets. A ticket object has a > foreign key field to a user object. 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

Re: notification when an object is deleted

2006-08-17 Thread James Bennett
On 8/17/06, medhat <[EMAIL PROTECTED]> wrote: > A ticket system where users can create tickets. A ticket object has a > foreign key field to a user object. 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

Re: notification when an object is deleted

2006-08-17 Thread medhat
Joe wrote: > You could write a database trigger and bypass Django entirely. but I would like to keep it all in python. first, I am not an sql expert, and second I don't want to worry about the different possible backends. --~--~-~--~~~---~--~~ You received this

Re: notification when an object is deleted

2006-08-17 Thread Joe
You could write a database trigger and bypass Django entirely. --~--~-~--~~~---~--~~ 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

notification when an object is deleted

2006-08-17 Thread medhat
Hi, I have the following scenario: A ticket system where users can create tickets. A ticket object has a foreign key field to a user object. 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? --