Skip to content

Commit 8af1608

Browse files
committed
docs: make description more detailed
1 parent a94130d commit 8af1608

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

user_guide_src/source/models/model.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,14 @@ prior to saving to the database with the ``insert()``, ``update()``, or ``save()
659659
.. important:: When you update data, by default, the validation in the model class only
660660
validates provided fields. This is to avoid validation errors when updating only some fields.
661661

662-
But this means ``required*`` rules do not work as expected when updating.
663-
If you want to check required fields, you can change the behavior by configuration.
664-
See :ref:`clean-validation-rules` for details.
662+
However, this means that not all validation rules you set will be checked
663+
during updates. Thus, incomplete data may pass the validation.
664+
665+
For example, ``required*`` rules or ``is_unique`` rule that require the
666+
values of other fields may not work as expected.
667+
668+
To avoid such glitches, this behavior can be changed by configuration. See
669+
:ref:`clean-validation-rules` for details.
665670

666671
Setting Validation Rules
667672
------------------------

0 commit comments

Comments
 (0)