Browse Source

Fixed #31350 -- Fixed typo in docs/topics/db/optimization.txt.

Shrikrishna Singh 5 years ago
parent
commit
370628673b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/topics/db/optimization.txt

+ 2 - 2
docs/topics/db/optimization.txt

@@ -386,9 +386,9 @@ The following example::
 ...is preferable to::
 
     entries[0].headline = 'This is not a test'
-    entries.save()
+    entries[0].save()
     entries[1].headline = 'This is no longer a test'
-    entries.save()
+    entries[1].save()
 
 Note that there are a number of :meth:`caveats to this method
 <django.db.models.query.QuerySet.bulk_update>`, so make sure it's appropriate