summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-06-18 13:32:12 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-06-18 13:32:12 +0000
commit457a1f9a031543e3d5d1cfb3944712fe71ebba2f (patch)
tree7fc7d26068ae4d15b9bb32c5c0216a55b762d0a9 /docs/ref
parentbc362cc6b81386d36f078a741e38f00b67fd4f8d (diff)
Fixed #11272 -- Made some clarifications to the overview and tutorial. Thanks to jjinux for the review notes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/contenttypes.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
index f814eccaab..94900b3892 100644
--- a/docs/ref/contrib/contenttypes.txt
+++ b/docs/ref/contrib/contenttypes.txt
@@ -347,8 +347,8 @@ doesn't work with a
:class:`~django.contrib.contenttypes.generic.GenericRelation`. For example, you
might be tempted to try something like::
- Bookmark.objects.aggregate(Count('tags'))
-
+ Bookmark.objects.aggregate(Count('tags'))
+
This will not work correctly, however. The generic relation adds extra filters
to the queryset to ensure the correct content type, but the ``aggregate`` method
doesn't take them into account. For now, if you need aggregates on generic