mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28834 -- Followed ancestor links on field cache lookup failure.
Thanks Tim for the review.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user