diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-31 21:15:55 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-31 21:15:55 +0000 |
| commit | 7475092c9facfdec98c6c01a7edbdaed53e4a07a (patch) | |
| tree | c67dfc23d0881491a94d9843d26ce934892952f4 /tests | |
| parent | fd0c4bb76ead305a0717de978a2dc52638f8697b (diff) | |
[1.0.X] Fixed #10157: correctly set the related objects pk when assigning a reverse OneToOne. Thanks, dgouldin.
Backport of r10224 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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 |
