#11235: minor error in queryset documentation
---------------------------+------------------------------------------------
 Reporter:  anonymous      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.0       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 There is a minor error in the second example of using the 'select'
 parameter to the 'extra' queryset method at
 http://docs.djangoproject.com/en/dev/ref/models/querysets/#extra-select-
 none-where-none-params-none-tables-none-order-by-none-select-params-none

 The second example's "resulting SQL" is missing "AS entry_count" for its
 subquery.

 It should read as follows:

 SELECT blog_blog.*, (SELECT COUNT(*) FROM blog_entry WHERE
 blog_entry.blog_id = blog_blog.id) AS entry_count
 FROM blog_blog;

 Currently "AS entry_count" is missing.  (The example is intended to create
 an entry_count attribute).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11235>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to