From 90231b24a4e82ea98655f2531d3fb1bd8e9a8d73 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 8 May 2017 16:01:52 +0200 Subject: [PATCH] Add on_delete ForeignKey parameter This is mandatory on recent Django versions. --- testtinymce/testapp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testtinymce/testapp/models.py b/testtinymce/testapp/models.py index ac3845f8..a2e9fa2c 100644 --- a/testtinymce/testapp/models.py +++ b/testtinymce/testapp/models.py @@ -6,6 +6,6 @@ class TestPage(models.Model): class TestInline(models.Model): - page = models.ForeignKey(TestPage) + page = models.ForeignKey(TestPage, on_delete=models.CASCADE) content1 = models.TextField() content2 = models.TextField()