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] + """