summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-28 09:26:10 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-28 09:27:14 +0200
commit4f7fc378a1be02643b909bf013bac17d43b91538 (patch)
tree15b223aadb43d9a2801065497d4a923b8284ae1b /docs
parentba4141b8bca0351b8a4cbf2379ccde807c283d97 (diff)
[4.1.x] Changed note about update_fields and pre_save() to admonition.
Follow up to bf47c719719d0e190a99fa2e7f959d5bbb7caf8a. Backport of 5d36a8266c7d5d1994d7a7eeb4016f80d9cb0401 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/instances.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 8b2c5b6ef5..7d5b1317a7 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -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``