As I know is that when we defining foreign key in django we can set like on_delete=models.CASCADE
.
Recently I have seen code like content_type = models.ForeignKey(ContentType,models.CASCADE)
.
My question is that does django allow to define models.CASCADE without using on_delete ? OR if we define like above does it…
Top comments (0)