Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Tweak to many_to_one_null doctest to avoid primary key assumptions (c…

…ausing breakage on PostgreSQL).

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9079ecf4d6b0e140c8449ec32da60efd00807e46 1 parent 77ec3ce
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/modeltests/many_to_one_null/
2  tests/modeltests/many_to_one_null/
@@ -40,7 +40,7 @@ def test_related_set(self):
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(
self.assertRaises(AttributeError, getattr, a3.reporter, 'id')
# Accessing an article's 'reporter' attribute returns None
# if the reporter is set to None.
Please sign in to comment.
Something went wrong with that request. Please try again.