From fa80e9fcb7c875b93117d78c8df3cd369a3ab21d Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 4 Feb 2006 22:47:05 +0000 Subject: [PATCH] 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 --- tests/modeltests/many_to_many/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/modeltests/many_to_many/models.py b/tests/modeltests/many_to_many/models.py index ef1bf8d4cc..19fa58d033 100644 --- a/tests/modeltests/many_to_many/models.py +++ b/tests/modeltests/many_to_many/models.py @@ -114,9 +114,10 @@ API_TESTS = """ [Science News] # 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') [NASA finds intelligent life on Earth, Oxygen-free diet works wonders] +>>> a5 = p2.article_set.all().order_by('headline')[1] >>> a5.publications.all() [Science News]