Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add aggregate suggestion to distinct notes (ticket #19842) #1107

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

No description provided.

@timgraham timgraham commented on an outdated diff May 18, 2013

docs/ref/models/querysets.txt
@@ -368,6 +368,8 @@ query spans multiple tables, it's possible to get duplicate results when a
otherwise duplicate rows appear to be distinct. Since the extra columns
don't appear in the returned results (they are only there to support
ordering), it sometimes looks like non-distinct results are being returned.
+ In this case, it may be possible to get distinct results using
+ :meth:`aggregate` instead.
@timgraham

timgraham May 18, 2013

Owner

the ticket mentions annotate, not aggregate?

Owner

timgraham commented May 29, 2013

An example would be helpful here. Please re-open if you can add one (or open a new request).

@timgraham timgraham closed this May 29, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment