mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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:
parent
56b364bacc
commit
03049fb8d9
5 changed files with 61 additions and 6 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue