thorn.validators
¶
Recipient Validators.
-
thorn.validators.
ensure_protocol
(*allowed)[source]¶ Only allow recipient URLs using specific protocols.
Example
>>> ensure_protocol('https', 'http://')
thorn.validators
¶Recipient Validators.
thorn.validators.
ensure_protocol
(*allowed)[source]¶Only allow recipient URLs using specific protocols.
Example
>>> ensure_protocol('https', 'http://')