Skip to content
Browse files

Added some extra examples to many_to_many unit test

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b888113 commit 741109f44056a0c55aaaf7a2747926a7b1b648b6 @adrianholovaty adrianholovaty committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/testapp/models/
6 tests/testapp/models/
@@ -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]

0 comments on commit 741109f

Please sign in to comment.
Something went wrong with that request. Please try again.