Values of on_delete

Report a typo

Match what the options of on_delete with what they can do.

Match the items from left and right columns
models.CASCADE
models.PROTECT
models.SET_NULL
models.SET
models.DO_NOTHING
sets null in the secondary model
does nothing with the secondary model
deletes all records from both the primary model and the secondary model
sets the preset value in the secondary model
throws an exception when trying to delete data that are related to the secondary model
___

Create a free account to access the full topic