summaryrefslogtreecommitdiff
path: root/tests/model_inheritance/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model_inheritance/models.py')
-rw-r--r--tests/model_inheritance/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/model_inheritance/models.py b/tests/model_inheritance/models.py
index a542385d60..a4f9cfe696 100644
--- a/tests/model_inheritance/models.py
+++ b/tests/model_inheritance/models.py
@@ -178,6 +178,7 @@ class GrandParent(models.Model):
first_name = models.CharField(max_length=80)
last_name = models.CharField(max_length=80)
email = models.EmailField(unique=True)
+ place = models.ForeignKey(Place, models.CASCADE, null=True, related_name='+')
class Meta:
unique_together = ('first_name', 'last_name')