diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/one_to_one/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/one_to_one/models.py b/tests/modeltests/one_to_one/models.py index 20ac7a5573..e25e33bcc0 100644 --- a/tests/modeltests/one_to_one/models.py +++ b/tests/modeltests/one_to_one/models.py @@ -79,6 +79,8 @@ DoesNotExist: Restaurant matching query does not exist. <Restaurant: Ace Hardware the restaurant> >>> r.place <Place: Ace Hardware the place> +>>> p2.id +2 # Set the place back again, using assignment in the reverse direction. >>> p1.restaurant = r |
