Skip to content

Commit ef4a3eb

Browse files
committed
Fixed reference to RUT in CONITField error message.
1 parent ccb5d71 commit ef4a3eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

localflavor/co/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class CONITField(EmptyValueCompatMixin, RegexField):
2626
http://es.wikipedia.org/wiki/N%C3%BAmero_de_Identificaci%C3%B3n_Tributaria
2727
"""
2828
default_error_messages = {
29-
'invalid': _('Enter a valid RUT in XXXXXXXXXXX-Y or XXXXXXXXXXXY format.'),
30-
'checksum': _('Invalid RUT.'),
29+
'invalid': _('Enter a valid NIT in XXXXXXXXXXX-Y or XXXXXXXXXXXY format.'),
30+
'checksum': _('Invalid NIT.'),
3131
}
3232

3333
PRIME_PLACES = [3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71]

tests/test_co.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def test_CODepartmentSelect(self):
4646
self.assertHTMLEqual(d.render('department', 'COR'), out)
4747

4848
def test_CONITField(self):
49-
error_format = ['Enter a valid RUT in XXXXXXXXXXX-Y or XXXXXXXXXXXY format.']
50-
error_invalid = ['Invalid RUT.']
49+
error_format = ['Enter a valid NIT in XXXXXXXXXXX-Y or XXXXXXXXXXXY format.']
50+
error_invalid = ['Invalid NIT.']
5151
valid = {
5252
'37547837-0': '37547837-0',
5353
'900227140-3': '900227140-3',

0 commit comments

Comments
 (0)