mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #28010 -- Allowed reverse related fields in SELECT FOR UPDATE .. OF.
Thanks Adam Chidlow for polishing the patch.
This commit is contained in:
@@ -14,3 +14,7 @@ class Person(models.Model):
|
||||
name = models.CharField(max_length=30)
|
||||
born = models.ForeignKey(City, models.CASCADE, related_name='+')
|
||||
died = models.ForeignKey(City, models.CASCADE, related_name='+')
|
||||
|
||||
|
||||
class PersonProfile(models.Model):
|
||||
person = models.OneToOneField(Person, models.CASCADE, related_name='profile')
|
||||
|
||||
Reference in New Issue
Block a user