diff options
Diffstat (limited to 'tests/admin_docs/models.py')
| -rw-r--r-- | tests/admin_docs/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_docs/models.py b/tests/admin_docs/models.py index 89a9e8c98e..6dff4358c2 100644 --- a/tests/admin_docs/models.py +++ b/tests/admin_docs/models.py @@ -38,8 +38,8 @@ class Person(models.Model): """ first_name = models.CharField(max_length=200, help_text="The person's first name") last_name = models.CharField(max_length=200, help_text="The person's last name") - company = models.ForeignKey(Company, help_text="place of work") - family = models.ForeignKey(Family, related_name='+', null=True) + company = models.ForeignKey(Company, models.CASCADE, help_text="place of work") + family = models.ForeignKey(Family, models.SET_NULL, related_name='+', null=True) groups = models.ManyToManyField(Group, help_text="has membership") def _get_full_name(self): |
