diff options
| author | Clifford Gama <cliffygamy@gmail.com> | 2025-10-29 17:32:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-29 11:32:12 -0400 |
| commit | 01f8460653e73a8f60c98d3a37a74b28818744b6 (patch) | |
| tree | dbefe388d320ce6d33eee93a3c441142384b40f5 /docs/topics/forms/modelforms.txt | |
| parent | 1aa69a7491ce7f7f1f164a26a3dfaaa1aeeab217 (diff) | |
Fixed #36329 -- Removed non-code custom link text when cross-referencing Python objects.
Thanks Bruno Alla, Sarah Boyce, and Jacob Walls for reviews.
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Diffstat (limited to 'docs/topics/forms/modelforms.txt')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index a673a179f6..c46412654c 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -299,14 +299,14 @@ for more information on the model's ``clean()`` hook. Considerations regarding model's ``error_messages`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Error messages defined at the -:attr:`form field <django.forms.Field.error_messages>` level or at the +Error messages defined at the form field level ( +:attr:`django.forms.Field.error_messages`) or at the :ref:`form Meta <modelforms-overriding-default-fields>` level always take -precedence over the error messages defined at the -:attr:`model field <django.db.models.Field.error_messages>` level. +precedence over the error messages defined at the model field level +(:attr:`django.db.models.Field.error_messages`). -Error messages defined on :attr:`model fields -<django.db.models.Field.error_messages>` are only used when the +Error messages defined on model fields +(:attr:`django.db.models.Field.error_messages`) are only used when the ``ValidationError`` is raised during the :ref:`model validation <validating-objects>` step and no corresponding error messages are defined at the form level. |
