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
This commit is contained in:
parent
b888113f49
commit
741109f440
|
@ -63,4 +63,10 @@ True
|
||||||
>>> a2.get_publication_list()
|
>>> a2.get_publication_list()
|
||||||
[The Python Journal, Science News]
|
[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]
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue