What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-23 05:29:08
on_delete options django
There are seven possible actions to take when such event occurs: CASCADE: When the referenced object is deleted, also delete the objects that have references to it (when you remove a blog post for instance, you might want to delete comments as well). ... Add solution -
Python 2021-10-20 07:30:06
on_delete=models.cascade
There are seven possible actions to take when such event occurs: CASCADE: When the referenced object is deleted, also delete the objects that have references to it (when you remove a blog post for instance, you might want to delete comments as well). ... Add solution