Changeset 7922 for django/branches/newforms-admin/docs/db-api.txt
- Timestamp:
- 07/14/08 00:04:57 (6 months ago)
- Files:
-
- django/branches/newforms-admin (modified) (1 prop)
- django/branches/newforms-admin/docs/db-api.txt (modified) (1 diff)
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 2213 2213 it won't work. 2214 2214 2215 Be aware that the ``update()`` method is converted directly to an SQL 2216 statement. 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`` 2218 signals (which are a consequence of calling ``save()``). If you want to save 2219 every item in a ``QuerySet`` and make sure that the ``save()`` method is 2220 called on each instance, you don't need any special function to handle that. 2221 Just loop over them and call ``save()``: 2222 2223 for item in my_queryset: 2224 item.save() 2225 2226 2215 2227 Extra instance methods 2216 2228 ======================
