Skip to content

Commit 167b26c

Browse files
authored
Merge pull request #6021 from kenjis/fix-docs-model.rst
docs: add note to $allowedFields
2 parents 16dfed0 + 12b4b3f commit 167b26c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

user_guide_src/source/models/model.rst

+2
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ This array should be updated with the field names that can be set during ``save(
141141
against just taking input from a form and throwing it all at the model, resulting in
142142
potential mass assignment vulnerabilities.
143143

144+
.. note:: The ``$primaryKey`` field should never be an allowed field.
145+
144146
$useTimestamps
145147
--------------
146148

0 commit comments

Comments
 (0)