Kaydet (Commit) 3898af2f authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #7937 -- Corrected typo in layout of db docs. Thanks to John Scott for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst ecdd0717
...@@ -2218,7 +2218,7 @@ statement. It is a bulk operation for direct updates. It doesn't run any ...@@ -2218,7 +2218,7 @@ statement. It is a bulk operation for direct updates. It doesn't run any
signals (which are a consequence of calling ``save()``). If you want to save signals (which are a consequence of calling ``save()``). If you want to save
every item in a ``QuerySet`` and make sure that the ``save()`` method is every item in a ``QuerySet`` and make sure that the ``save()`` method is
called on each instance, you don't need any special function to handle that. called on each instance, you don't need any special function to handle that.
Just loop over them and call ``save()``: Just loop over them and call ``save()``::
for item in my_queryset: for item in my_queryset:
item.save() item.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment