Django Foreign Key Deletion Constraints

In this tutorial we review the 7 behaviours that we can define for when the referenced object is deleted in a foreign key relationship. Timeline: 00:00 Introduction 00:53 Setup 03:01 SET_NULL 05:40 SET_DEFAULT 07:02 CASCADE 08:26 PROTECT 09:11 SET 10:59 DO_NOTHING 11:18 RESTRICT Reading: #
Back to Top