diff options
Diffstat (limited to 'tests/m2m_and_m2o')
| -rw-r--r-- | tests/m2m_and_m2o/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/m2m_and_m2o/models.py b/tests/m2m_and_m2o/models.py index 753820fade..60f5c43733 100644 --- a/tests/m2m_and_m2o/models.py +++ b/tests/m2m_and_m2o/models.py @@ -18,7 +18,7 @@ class User(models.Model): class Issue(models.Model): num = models.IntegerField() cc = models.ManyToManyField(User, blank=True, related_name='test_issue_cc') - client = models.ForeignKey(User, related_name='test_issue_client') + client = models.ForeignKey(User, models.CASCADE, related_name='test_issue_client') def __str__(self): return six.text_type(self.num) |
