"on_delete=models.CASCADE" in OneToOne not work as ForeignKey relationship

Well, did you read the reply above? It contains two solutions, one simple but brittle and a second one more advanced but with stronger guarantees. Not sure what else you are expecting here.

1 Like