mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
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
This commit is contained in:
parent
aba95b718c
commit
69d6bd7af3
2 changed files with 5 additions and 4 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue