summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/validation.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/forms/validation.txt b/docs/ref/forms/validation.txt
index 5715d15fa7..4ff73cb88a 100644
--- a/docs/ref/forms/validation.txt
+++ b/docs/ref/forms/validation.txt
@@ -117,7 +117,8 @@ Raising ``ValidationError``
In order to make error messages flexible and easy to override, consider the
following guidelines:
-* Provide a descriptive error ``code`` to the constructor::
+* Provide a descriptive error ``code`` to the constructor, to allow
+ programmatic use (e.g. in tests) that will not vary with translations::
# Good
ValidationError(_("Invalid value"), code="invalid")