Match what the options of on_delete with what they can do.
Relationship fields
Values of on_delete
Report a typo
Match the items from left and right columns
models.CASCADEmodels.PROTECTmodels.SET_NULLmodels.SETmodels.DO_NOTHINGsets 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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.