Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed BRPhoneNumberField message to reflect possible phone number for…

…mats.
  • Loading branch information...
commit 3e0d282d11f8d9a0e17e68d76fdf48700d1c3cdf 1 parent 46a1e3c
@cadusk cadusk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/localflavor/br/forms.py
View
2  django/contrib/localflavor/br/forms.py
@@ -28,7 +28,7 @@ def __init__(self, max_length=None, min_length=None, *args, **kwargs):
class BRPhoneNumberField(Field):
default_error_messages = {
- 'invalid': _('Phone numbers must be in XX-XXXXX-XXXX format.'),
+ 'invalid': _('Phone numbers must be in XX-XXXXX-XXXX or XX-XXXX-XXXX format.'),
}
def clean(self, value):
Please sign in to comment.
Something went wrong with that request. Please try again.