1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #28834 -- Followed ancestor links on field cache lookup failure.

Thanks Tim for the review.
This commit is contained in:
Simon Charette
2017-11-23 02:14:32 -05:00
parent 746caf3ef8
commit 78c5e7b90e
4 changed files with 34 additions and 1 deletions

View File

@@ -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')