Django

Code

Show
Ignore:
Timestamp:
07/14/08 00:04:57 (6 months ago)
Author:
brosner
Message:

newforms-admin: Merged from trunk up to [7917].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin

    • Property svnmerge-integrated changed from /django/trunk:1-4345,4350-4357,4359-4365,4371-4372,4374-4377,4380-4386,4388,4390-4391,4400-4402,4404-4408,4410,4412-4419,4426-4427,4430-4432,4434,4441,4443-4444,4446-4447,4450,4452-4453,4455-4458,4476,4503,4546,4564-4569,4580-4586,4617,4630,4641-6390,6392-7880 to /django/trunk:1-4345,4350-4357,4359-4365,4371-4372,4374-4377,4380-4386,4388,4390-4391,4400-4402,4404-4408,4410,4412-4419,4426-4427,4430-4432,4434,4441,4443-4444,4446-4447,4450,4452-4453,4455-4458,4476,4503,4546,4564-4569,4580-4586,4617,4630,4641-6390,6392-7921
  • django/branches/newforms-admin/docs/db-api.txt

    r7809 r7922  
    22132213it won't work. 
    22142214 
     2215Be aware that the ``update()`` method is converted directly to an SQL 
     2216statement. It is a bulk operation for direct updates. It doesn't run any 
     2217``save()`` methods on your models, or emit the ``pre_save`` or ``post_save`` 
     2218signals (which are a consequence of calling ``save()``). If you want to save 
     2219every item in a ``QuerySet`` and make sure that the ``save()`` method is 
     2220called on each instance, you don't need any special function to handle that. 
     2221Just loop over them and call ``save()``: 
     2222 
     2223    for item in my_queryset: 
     2224        item.save() 
     2225 
     2226 
    22152227Extra instance methods 
    22162228======================