Skip to content
Browse files

Added some extra examples to many_to_many unit test

git-svn-id: http://code.djangoproject.com/svn/django/trunk@445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 741109f commit 270234d1895d81698fda140caa43629ad77504e0 @adrianholovaty adrianholovaty committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/testapp/models/many_to_many.py
View
7 tests/testapp/models/many_to_many.py
@@ -69,4 +69,11 @@ def __repr__(self):
>>> p1.get_article_list(order_by=['headline'])
[Django lets you build Web apps easily, NASA uses Python]
+# If we delete an article, its publication won't be able to access it.
+>>> a2.delete()
+>>> articles.get_list()
+[Django lets you build Web apps easily]
+>>> p1.get_article_list(order_by=['headline'])
+[Django lets you build Web apps easily]
+
"""

0 comments on commit 270234d

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