Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1745 -- Accessing many-to-many relationships without a PK valu…

…e now throws an exception. Thanks, Luke

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 69d6bd7af380d47edee2c7bdf02fef41e183acd1 1 parent aba95b7
Adrian Holovaty authored May 02, 2006
5  django/db/models/fields/related.py
@@ -239,8 +239,9 @@ def __init__(self, model=None, core_filters=None, instance=None, symmetrical=Non
4  tests/modeltests/many_to_many/models.py
@@ -110,8 +110,8 @@ class Meta:
110 110
 >>> a2.delete()
111 111
 >>> Article.objects.all()
112 112
 [Django lets you build Web apps easily]
113  
->>> p1.article_set.all()
114  
-[Django lets you build Web apps easily]
  113
+>>> p2.article_set.all()
  114
+[]
115 115
 
116 116
 # Adding via the 'other' end of an m2m
117 117
 >>> a4 = Article(headline='NASA finds intelligent life on Earth')

0 notes on commit 69d6bd7

Please sign in to comment.
Something went wrong with that request. Please try again.