Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #11235 -- Added a missing clause from some sample SQL i…

…n the queryset docs.

Merge of r11239 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1c908784e6a1b8b9a0d690b09728ed9211e5a04f 1 parent c7289a0
Russell Keith-Magee authored July 15, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/models/querysets.txt
2  docs/ref/models/querysets.txt
@@ -618,7 +618,7 @@ of the arguments is required, but you should use at least one of them.
618 618
 
619 619
     The resulting SQL of the above example would be::
620 620
 
621  
-        SELECT blog_blog.*, (SELECT COUNT(*) FROM blog_entry WHERE blog_entry.blog_id = blog_blog.id)
  621
+        SELECT blog_blog.*, (SELECT COUNT(*) FROM blog_entry WHERE blog_entry.blog_id = blog_blog.id) AS entry_count
622 622
         FROM blog_blog;
623 623
 
624 624
     Note that the parenthesis required by most database engines around

0 notes on commit 1c90878

Please sign in to comment.
Something went wrong with that request. Please try again.