mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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
This commit is contained in:
parent
bc362cc6b8
commit
457a1f9a03
6 changed files with 36 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue