diff options
Diffstat (limited to 'docs/topics/db/examples')
| -rw-r--r-- | docs/topics/db/examples/many_to_many.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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) [<Article: Django lets you build Web apps easily>] >>> 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() [<Article: NASA uses Python>] |
