summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-02 19:51:41 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-02 19:51:41 +0000
commit69d6bd7af380d47edee2c7bdf02fef41e183acd1 (patch)
treec29ff23790fe89c53d1b12e90271969b48fd58d9 /tests
parentaba95b718cff6a4690a9bcadedd2dbff7439c4a2 (diff)
Fixed #1745 -- Accessing many-to-many relationships without a PK value now throws an exception. Thanks, Luke
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/many_to_many/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/many_to_many/models.py b/tests/modeltests/many_to_many/models.py
index dc69f9a49f..35677d1524 100644
--- a/tests/modeltests/many_to_many/models.py
+++ b/tests/modeltests/many_to_many/models.py
@@ -110,8 +110,8 @@ API_TESTS = """
>>> a2.delete()
>>> Article.objects.all()
[Django lets you build Web apps easily]
->>> p1.article_set.all()
-[Django lets you build Web apps easily]
+>>> p2.article_set.all()
+[]
# Adding via the 'other' end of an m2m
>>> a4 = Article(headline='NASA finds intelligent life on Earth')