[4.1.x] Changed note about update_fields and pre_save() to admonition.
Follow up tobf47c71971
. Backport of5d36a8266c
from main
This commit is contained in:
parent
ba4141b8bc
commit
4f7fc378a1
|
@ -621,7 +621,7 @@ from the DB will get updated. In effect there is an automatic
|
|||
``update_fields`` in this case. If you assign or change any deferred field
|
||||
value, the field will be added to the updated fields.
|
||||
|
||||
.. note::
|
||||
.. admonition:: ``Field.pre_save()`` and ``update_fields``
|
||||
|
||||
If ``update_fields`` is passed in, only the
|
||||
:meth:`~django.db.models.Field.pre_save` methods of the ``update_fields``
|
||||
|
|
Loading…
Reference in New Issue