validator-collection
validator-collection copied to clipboard
Support Postal Code Validation
Continuing with the localization themes outlined for milestone v.1.6.0, it may be helpful to add support for postal code (zip code) validation:
-
validators.postal_code(value, ..., country = None)
which validatesvalue
as a properly-formatted postal code withincountry
(or checks against all countries ifNone
) -
checkers.is_postal_code(value, country = None)
which validatesvalue
againstvalidators.postal_code()