Ticket #17544: ticket17544.diff
File ticket17544.diff, 1.1 KB (added by , 13 years ago) |
---|
-
tests/regressiontests/localflavor/pl/tests.py
429 429 } 430 430 invalid = { 431 431 '43-343-234-323': error_format, 432 432 '64-62-414-124': error_format, 433 433 '646-241-41-23': error_checksum, 434 '1112027170': error_checksum, 434 435 } 435 436 self.assertFieldOutput(PLNIPField, valid, invalid) 436 437 -
django/contrib/localflavor/pl/forms.py
155 155 result += int(number[i]) * multiple_table[i] 156 156 157 157 result %= 11 158 if result == int(number[-1]):158 if result != 10 and result == int(number[-1]): 159 159 return True 160 160 else: 161 161 return False