From 270234d1895d81698fda140caa43629ad77504e0 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 9 Aug 2005 22:56:43 +0000 Subject: [PATCH] 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 --- tests/testapp/models/many_to_many.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/testapp/models/many_to_many.py b/tests/testapp/models/many_to_many.py index 787221a1fd..9b38b515b4 100644 --- a/tests/testapp/models/many_to_many.py +++ b/tests/testapp/models/many_to_many.py @@ -69,4 +69,11 @@ True >>> 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] + """