Skip to content

Commit d07b542

Browse files
committed
Minor tweak
1 parent 8895f70 commit d07b542

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

validation/groups.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,18 @@ With this configuration, there are three validation groups:
132132

133133
``Default``
134134
Contains the constraints in the current class and all referenced classes
135-
that belong to no other group. Contains the constraint on the ``city``
136-
field only.
135+
that belong to no other group. In this example, it only contains the
136+
``city`` field.
137137

138138
``User``
139139
Equivalent to all constraints of the ``User`` object in the ``Default``
140140
group. This is always the name of the class. The difference between this
141141
and ``Default`` is explained in :doc:`/validation/sequence_provider`.
142142

143143
``registration``
144-
Contains the constraints on the ``email`` and ``password`` fields only.
144+
This is a custom validation group, so it only contains the constraints
145+
explicitly associated to it. In this example, only the ``email`` and
146+
``password`` fields.
145147

146148
Constraints in the ``Default`` group of a class are the constraints that have
147149
either no explicit group configured or that are configured to a group equal to

0 commit comments

Comments
 (0)