Skip to content

Commit f58db31

Browse files
committed
docs: fix incorrect explanation
The cleanRules() method controls whether to remove validation rules or not.
1 parent 9010060 commit f58db31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

user_guide_src/source/models/model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ For many people, validating data in the model is the preferred way to ensure the
390390
standard, without duplicating code. The Model class provides a way to automatically have all data validated
391391
prior to saving to the database with the ``insert()``, ``update()``, or ``save()`` methods.
392392

393-
.. important:: The validation in the model class only validate provided fields.
393+
.. important:: When you update data, the validation in the model class only validate provided fields.
394394
So when you set the rule ``required``, if you don't pass the required field data,
395395
the validation won't fail. This is to avoid validation errors when updating only some fields.
396396

0 commit comments

Comments
 (0)