Skip to content

Commit

Permalink
Add on_delete ForeignKey parameter
Browse files Browse the repository at this point in the history
This is mandatory on recent Django versions.
  • Loading branch information
claudep committed May 8, 2017
1 parent c0570af commit 90231b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testtinymce/testapp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 90231b2

Please sign in to comment.