From 741109f44056a0c55aaaf7a2747926a7b1b648b6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 9 Aug 2005 22:53:43 +0000 Subject: [PATCH] Added some extra examples to many_to_many unit test git-svn-id: http://code.djangoproject.com/svn/django/trunk@444 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/testapp/models/many_to_many.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/testapp/models/many_to_many.py b/tests/testapp/models/many_to_many.py index 1a4436ff5a..787221a1fd 100644 --- a/tests/testapp/models/many_to_many.py +++ b/tests/testapp/models/many_to_many.py @@ -63,4 +63,10 @@ True >>> a2.get_publication_list() [The Python Journal, Science News] +# Publication objects have access to their related Article objects. +>>> p2.get_article_list() +[NASA uses Python] +>>> p1.get_article_list(order_by=['headline']) +[Django lets you build Web apps easily, NASA uses Python] + """