-
CASCADE
Cascade deletes. Django emulates the behavior of the
SQL constraint ON DELETE CASCADEand also deletes the object
containing theForeignKey. -
PROTECT
Prevent deletion of the referenced object byraising
ProtectedError, a subclass ofdjango.db.IntegrityError.
the things get deleted because once you change your model you need to do makemigrations and migrate to see the change.