1
0
mirror of https://github.com/django/django.git synced 2025-03-31 11:37:06 +00:00

Fixed #19374 -- Typo in docs/ref/models/instances.txt.

This commit is contained in:
Jason Yan 2012-11-27 18:57:50 -08:00
parent 38055222bd
commit eeaab083fe

View File

@ -378,7 +378,7 @@ If ``save()`` is passed a list of field names in keyword argument
``update_fields``, only the fields named in that list will be updated.
This may be desirable if you want to update just one or a few fields on
an object. There will be a slight performance benefit from preventing
all of the model fields from being updated in the database. For example:
all of the model fields from being updated in the database. For example::
product.name = 'Name changed again'
product.save(update_fields=['name'])