Ticket #19842: add_annotate_suggestion.2.patch

File add_annotate_suggestion.2.patch, 2.0 KB (added by Jef Geskens, 11 years ago)
  • docs/ref/models/querysets.txt

    From 4d1c420e006bbb625873de49664e2b7c0f6ca78f Mon Sep 17 00:00:00 2001
    From: jgeskens <jef.geskens@gmail.com>
    Date: Sat, 18 May 2013 12:41:01 +0200
    Subject: [PATCH 1/2] Add aggregate suggestion to distinct notes #19842
    
    ---
     docs/ref/models/querysets.txt |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
    index ffada19..9d68cc7 100644
    a b query spans multiple tables, it's possible to get duplicate results when a  
    368368    otherwise duplicate rows appear to be distinct. Since the extra columns
    369369    don't appear in the returned results (they are only there to support
    370370    ordering), it sometimes looks like non-distinct results are being returned.
     371    In this case, it may be possible to get distinct results using
     372    :meth:`aggregate` instead.
    371373
    372374    Similarly, if you use a :meth:`values()` query to restrict the columns
    373375    selected, the columns used in any :meth:`order_by()` (or default model
  • docs/ref/models/querysets.txt

    -- 
    1.7.6.1
    
    
    From 25e8e5ee81892af24749c7bedeaddab3d916c9ba Mon Sep 17 00:00:00 2001
    From: jgeskens <jef.geskens@gmail.com>
    Date: Sat, 18 May 2013 18:10:05 +0200
    Subject: [PATCH 2/2] Fixed typo
    
    ---
     docs/ref/models/querysets.txt |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
    index 9d68cc7..287c1e4 100644
    a b query spans multiple tables, it's possible to get duplicate results when a  
    369369    don't appear in the returned results (they are only there to support
    370370    ordering), it sometimes looks like non-distinct results are being returned.
    371371    In this case, it may be possible to get distinct results using
    372     :meth:`aggregate` instead.
     372    :meth:`annotate` instead.
    373373
    374374    Similarly, if you use a :meth:`values()` query to restrict the columns
    375375    selected, the columns used in any :meth:`order_by()` (or default model
Back to Top