Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  tests/testapp/models/many_to_many.py
6  tests/testapp/models/many_to_many.py
@@ -63,4 +63,10 @@ def __repr__(self):
63 63
 >>> a2.get_publication_list()
64 64
 [The Python Journal, Science News]
65 65
 
  66
+# Publication objects have access to their related Article objects.
  67
+>>> p2.get_article_list()
  68
+[NASA uses Python]
  69
+>>> p1.get_article_list(order_by=['headline'])
  70
+[Django lets you build Web apps easily, NASA uses Python]
  71
+
66 72
 """

0 notes on commit 741109f

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