magic-removal: Fixed some incorrect tests in many_to_many
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fae0dde7bb
commit
fa80e9fcb7
|
@ -114,9 +114,10 @@ API_TESTS = """
|
||||||
[Science News]
|
[Science News]
|
||||||
|
|
||||||
# Adding via the other end using keywords
|
# Adding via the other end using keywords
|
||||||
>>> a5 = p1.article_set.add(headline='Oxygen-free diet works wonders')
|
>>> p2.article_set.add(headline='Oxygen-free diet works wonders')
|
||||||
>>> p2.article_set.all().order_by('headline')
|
>>> p2.article_set.all().order_by('headline')
|
||||||
[NASA finds intelligent life on Earth, Oxygen-free diet works wonders]
|
[NASA finds intelligent life on Earth, Oxygen-free diet works wonders]
|
||||||
|
>>> a5 = p2.article_set.all().order_by('headline')[1]
|
||||||
>>> a5.publications.all()
|
>>> a5.publications.all()
|
||||||
[Science News]
|
[Science News]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue