Skip to content

Commit 1972757

Browse files
committed
minor #4775 Corrected validation information on inheritance (peterrehm)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #4775). Discussion ---------- Corrected validation information on inheritance | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - | Related | #4454 Minor fix as per Discussion 09f9d3d#commitcomment-9150852 Commits ------- 230c4fc Corrected validation information on inheritance
2 parents 99aca45 + 230c4fc commit 1972757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/validation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,8 @@ the string ``Default``.
844844
If you have inheritance (e.g. ``User extends BaseUser``) and you validate
845845
with the class name of the subclass (i.e. ``User``), then all constraints
846846
in the ``User`` and ``BaseUser`` will be validated. However, if you validate
847-
using the base class (i.e. ``BaseUser``), then only the constraints in
848-
the ``BaseUser`` group will be validated.
847+
using the base class (i.e. ``BaseUser``), then only the default constraints in
848+
the ``BaseUser`` class will be validated.
849849

850850
To tell the validator to use a specific group, pass one or more group names
851851
as the second argument to the ``validate()`` method::

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy