diff options
| author | Tim Graham <timograham@gmail.com> | 2016-07-15 11:07:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-10 21:19:09 -0400 |
| commit | e2dfa81ff7489d97700604d634adacf1384af184 (patch) | |
| tree | 820b7dbbcf611b5f18e02375cc3e2d9dbea5ab98 /tests/contenttypes_tests/models.py | |
| parent | 7399fee6c3bb7eded1ecf5855d71520db299d79d (diff) | |
Refs #18682 -- Edited explanation in stale content type deletion.
Follow up to 8db889eaf7dce0cb715b075be32047c1b1b316da.
Diffstat (limited to 'tests/contenttypes_tests/models.py')
| -rw-r--r-- | tests/contenttypes_tests/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/contenttypes_tests/models.py b/tests/contenttypes_tests/models.py index 4b9d3d31e6..fe1854e8a3 100644 --- a/tests/contenttypes_tests/models.py +++ b/tests/contenttypes_tests/models.py @@ -131,6 +131,7 @@ class Post(models.Model): class ModelWithNullFKToSite(models.Model): title = models.CharField(max_length=200) site = models.ForeignKey(Site, null=True, on_delete=models.CASCADE) + post = models.ForeignKey(Post, null=True, on_delete=models.CASCADE) def __str__(self): return self.title |
