Skip to content

Commit

Permalink
Merge pull request #788 from trail-of-forks/ww/tweak-inputrequired-docs
Browse files Browse the repository at this point in the history
docs: wtforms/validators: tweak `InputRequired` docs
  • Loading branch information
davidism authored May 31, 2023
2 parents 96021e2 + e87f086 commit 0524993
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wtforms/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ class InputRequired:
Note there is a distinction between this and DataRequired in that
InputRequired looks that form-input data was provided, and DataRequired
looks at the post-coercion data.
looks at the post-coercion data. This means that this validator only checks
whether non-empty data was sent, not whether non-empty data was coerced
from that data. Initially populated data is not considered sent.
Sets the `required` attribute on widgets.
"""
Expand Down

0 comments on commit 0524993

Please sign in to comment.