Skip to content

Commit 4fc20e0

Browse files
committed
Added WTForms references
1 parent 57b23bb commit 4fc20e0

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎validators/ip_address.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def ipv6(value):
3434
"""
3535
Returns whether or not given value is a valid IP version 6 address.
3636
37-
This validator is based on `WTForms IPAddress validator`_
37+
This validator is based on `WTForms IPAddress validator`_.
3838
3939
.. _WTForms IPAddress validator:
4040
https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
@@ -48,6 +48,8 @@ def ipv6(value):
4848
>>> validators.ipv6('abc.0.0.1')
4949
False
5050
51+
.. versionadded:: 0.2
52+
5153
:param value: IP address string to validate
5254
"""
5355
parts = value.split(':')

‎validators/mac_address.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ def mac_address(value):
1111
Returns whether or not given value is a valid mac address. If the value is
1212
valid mac address this function returns True, otherwise `FailedValidation`.
1313
14+
This validator is based on `WTForms MacAddress validator`_.
15+
16+
.. _WTForms MacAddress validator:
17+
https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
18+
1419
Examples::
1520
1621
>>> import validators

‎validators/uuid.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ def uuid(value):
1111
Returns whether or not given value is a valid uuid. If the value is valid
1212
uuid this function returns True, otherwise `FailedValidation`.
1313
14+
This validator is based on `WTForms UUID validator`_.
15+
16+
.. _WTForms UUID validator:
17+
https://github.com/wtforms/wtforms/blob/master/wtforms/validators.py
18+
1419
Examples::
1520
1621
>>> import validators

0 commit comments

Comments
 (0)