1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00

Changed note about update_fields and pre_save() to admonition.

Follow up to bf47c719719d0e190a99fa2e7f959d5bbb7caf8a.
This commit is contained in:
Mariusz Felisiak 2022-09-28 09:26:10 +02:00 committed by GitHub
parent 1a7b6909ac
commit 5d36a8266c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ``update_fields`` in this case. If you assign or change any deferred field
value, the field will be added to the updated fields. 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 If ``update_fields`` is passed in, only the
:meth:`~django.db.models.Field.pre_save` methods of the ``update_fields`` :meth:`~django.db.models.Field.pre_save` methods of the ``update_fields``