On Wed, Aug 17, 2011 at 6:12 AM, Jeremy Keeshin <[email protected]> wrote: > I have an Item model that has many Tags. If I delete a Tag, I want to make > sure the related Items are not deleted. I tested this out on my local > database, and it seems that there are no cascading deletes with many to many > fields. However, I previously deleted data accidentally with ForeignKeys > because I did not understand cascading deletes, so I just want to make > sure.
Yes, this is correct -- foreign keys cascade deletes by default; many to many fields don't. Jacob -- 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.

