Example #1
0
 def validate(self, value, model_instance):
     helper.validate_phone_number(value, ValidationError)
Example #2
0
 def validate(self, value: 'PhoneNumber'):
     """Check if value consists only of valid phone numbers."""
     return validate_phone_number(value, forms.ValidationError)
 def validate(self, value: 'PhoneNumber'):
     """Check if value consists only of valid phone numbers."""
     return validate_phone_number(value, forms.ValidationError)