mirror of
https://github.com/django/django.git
synced 2025-07-17 08:09:13 +00:00
[3.0.x] Fixed #31350 -- Fixed typo in docs/topics/db/optimization.txt.
Backport of 370628673b98ada302c3930865c4bfde2d8ed5a1 from master
This commit is contained in:
parent
cc20699e0a
commit
300bd064c1
@ -388,9 +388,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user