You're viewing a single thread.
All Comments
3 comments
Maybe I'm dumb, but I can't seem to grasp what Models.CASCADE does. It didn't pop up with a definition in either the article, or the Django 4.2 docs.
2 0 ReplyLook at ForeignKey -> Arguments: https://docs.djangoproject.com/en/4.2/ref/models/fields/#arguments
In the sample in the linked page, deleting a
Person
object would also deleteOrder
object/s linked to that particular person via the ForeignKeyedit: although the syntax is usually
on_delete=models.CASCADE
2 0 ReplyFucking derp. I'm dumb.
1 0 Reply