#12084: Document the return type of QuerySet.update()
---------------------------+------------------------------------------------
 Reporter:  anonymous      |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 [http://docs.djangoproject.com/en/dev/topics/db/queries/#updating-
 multiple-objects-at-once From the documentation]: "The update() method is
 applied instantly and doesn't return anything […]"

 This is not true. `QuerySet.update()` returns the number of rows affected
 by the `UPDATE` query, which is quite useful. The
 
[http://code.djangoproject.com/browser/django/trunk/tests/modeltests/update/models.py
 update tests] rely on this feature. Make it part of the public API.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12084>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to