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
This commit is contained in:
parent
ecdd071794
commit
3898af2f51
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue