From 596cb9c7e287abbb98c64974fb4944d522cb6b5a Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 28 Apr 2012 18:02:01 +0200 Subject: Replaced print statement by print function (forward compatibility syntax). --- docs/topics/db/examples/many_to_many.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/topics/db/examples') diff --git a/docs/topics/db/examples/many_to_many.txt b/docs/topics/db/examples/many_to_many.txt index 1ad89e71bf..5a24027894 100644 --- a/docs/topics/db/examples/many_to_many.txt +++ b/docs/topics/db/examples/many_to_many.txt @@ -263,14 +263,14 @@ Bulk delete some Publications - references to deleted publications should go:: Bulk delete some articles - references to deleted objects should go:: >>> q = Article.objects.filter(headline__startswith='Django') - >>> print q + >>> print(q) [] >>> q.delete() After the delete, the QuerySet cache needs to be cleared, and the referenced objects should be gone:: - >>> print q + >>> print(q) [] >>> p1.article_set.all() [] -- cgit v1.3