diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-12 00:56:40 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-10-12 00:56:40 +0000 |
| commit | 9079ecf4d6b0e140c8449ec32da60efd00807e46 (patch) | |
| tree | 3624cbfe56f5236ec2246c10e7a2d5d276851441 | |
| parent | 77ec3ce0c4dfdf41056a309e95a7647678436ad8 (diff) | |
Tweak to many_to_one_null doctest to avoid primary key assumptions (causing breakage on PostgreSQL).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/modeltests/many_to_one_null/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/many_to_one_null/tests.py b/tests/modeltests/many_to_one_null/tests.py index 6b7b0a7413..c78f980871 100644 --- a/tests/modeltests/many_to_one_null/tests.py +++ b/tests/modeltests/many_to_one_null/tests.py @@ -40,7 +40,7 @@ class ManyToOneNullTests(TestCase): def test_created_without_related(self): self.assertEqual(self.a3.reporter, None) # Need to reget a3 to refresh the cache - a3 = Article.objects.get(pk=3) + a3 = Article.objects.get(pk=self.a3.pk) self.assertRaises(AttributeError, getattr, a3.reporter, 'id') # Accessing an article's 'reporter' attribute returns None # if the reporter is set to None. |
