mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed inconsistent period usage in localflavor.br error messages from [5089]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -851,15 +851,15 @@ ValidationError: [u'This field is required.']
|
||||
>>> f.clean('12-345-678/9012-10')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValidationError: [u'Invalid CNPJ number']
|
||||
ValidationError: [u'Invalid CNPJ number.']
|
||||
>>> f.clean('12.345.678/9012-10')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValidationError: [u'Invalid CNPJ number']
|
||||
ValidationError: [u'Invalid CNPJ number.']
|
||||
>>> f.clean('12345678/9012-10')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValidationError: [u'Invalid CNPJ number']
|
||||
ValidationError: [u'Invalid CNPJ number.']
|
||||
>>> f.clean('64.132.916/0001-88')
|
||||
'64.132.916/0001-88'
|
||||
>>> f.clean('64-132-916/0001-88')
|
||||
@@ -869,7 +869,7 @@ ValidationError: [u'Invalid CNPJ number']
|
||||
>>> f.clean('64.132.916/0001-XX')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValidationError: [u'This field requires only numbers']
|
||||
ValidationError: [u'This field requires only numbers.']
|
||||
>>> f = BRCNPJField(required=False)
|
||||
>>> f.clean('')
|
||||
u''
|
||||
|
||||
Reference in New Issue
Block a user