Skip to content

Commit

Permalink
[3.0.x] Corrected outdated sentence in One-to-one relationships docs.
Browse files Browse the repository at this point in the history
Backport of f75af5b from master
  • Loading branch information
philippbosch authored and felixxm committed Mar 17, 2020
1 parent c5ac3ab commit 725d7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/db/examples/one_to_one.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 725d7c2

Please sign in to comment.