Skip to content

Commit 230c4fc

Browse files
peterrehmweaverryan
authored andcommitted
Corrected validation information on inheritance
1 parent 99aca45 commit 230c4fc

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)