Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 741109f44056a0c55aaaf7a2747926a7b1b648b6 1 parent b888113
@adrianholovaty adrianholovaty authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/testapp/models/many_to_many.py
View
6 tests/testapp/models/many_to_many.py
@@ -63,4 +63,10 @@ def __repr__(self):
>>> 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]
+
"""
Please sign in to comment.
Something went wrong with that request. Please try again.