Answer the question
In order to leave comments, you need to log in
What does "on_delete doesn't create a SQL constraint" mean?
Reading the Django documentation regarding model fields Link .
Regarding the on_delete argument when creating a model field, it says:
on_delete doesn't create a SQL constraint
Answer the question
In order to leave comments, you need to log in
It was a bit short to read the following: "Cascade deletes. Django emulates the behavior of the SQL constraint ON DELETE CASCADE and also deletes the object containing the ForeignKey."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question