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 model?

It should happen automatically; Django emulates SQL's "ON DELETE
CASCADE" behavior when deleting an object to which other objects were
related.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
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