diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-09-28 09:26:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 09:26:10 +0200 |
| commit | 5d36a8266c7d5d1994d7a7eeb4016f80d9cb0401 (patch) | |
| tree | 6388e96c288234c505189b084ab5073fd94970b2 /docs | |
| parent | 1a7b6909ac030d2c4dae2664b08ee0bce9c4c915 (diff) | |
Changed note about update_fields and pre_save() to admonition.
Follow up to bf47c719719d0e190a99fa2e7f959d5bbb7caf8a.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/instances.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 7fc4465afa..62c680833a 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`` |
