mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[3.0.x] Corrected outdated sentence in One-to-one relationships docs.
Backport of f75af5b67b
from master
This commit is contained in:
parent
c5ac3ab056
commit
725d7c2a7c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ Create a couple of Places::
|
|||
>>> p2 = Place(name='Ace Hardware', address='1013 N. Ashland')
|
||||
>>> p2.save()
|
||||
|
||||
Create a Restaurant. Pass the ID of the "parent" object as this object's ID::
|
||||
Create a Restaurant. Pass the "parent" object as this object's primary key::
|
||||
|
||||
>>> r = Restaurant(place=p1, serves_hot_dogs=True, serves_pizza=False)
|
||||
>>> r.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue