Skip to content

Commit 712dcb0

Browse files
committed
docs: add warning for In-Model Validation
1 parent 1d3336b commit 712dcb0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

user_guide_src/source/models/model.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,14 @@ Cleans out the database table by permanently removing all rows that have 'delete
649649
In-Model Validation
650650
===================
651651

652+
.. warning:: In-Model validation is performed just before data is stored in the
653+
database. Prior to that point, the data has not yet been validated. Processing
654+
user-input data prior to validation may introduce vulnerabilities.
655+
652656
Validating Data
653657
---------------
654658

655-
For many people, validating data in the model is the preferred way to ensure the data is kept to a single
656-
standard, without duplicating code. The Model class provides a way to automatically have all data validated
659+
The Model class provides a way to automatically have all data validated
657660
prior to saving to the database with the ``insert()``, ``update()``, or ``save()`` methods.
658661

659662
.. important:: When you update data, by default, the validation in the model class only

0 commit comments

Comments
 (0)