You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was buggy because:
* `calculated_checksum % 10` could be `0` if `calculated_checksum` is a multiple of 10
* `10 - 0 = 10`
* `10` cannot be validly string-compared to a single-digit
Fixes: django#331
It was buggy because:
* `calculated_checksum % 10` could be `0` if `calculated_checksum` is a multiple of 10
* `10 - 0 = 10`
* `10` cannot be validly string-compared to a single-digit
Fixes: #331
In the context of the https://github.com/defivelo/db project, I have two EAN numbers which validate on https://www.getnewidentity.com/validate-ean.php but are not considered valid by from
localflavor.generic.validators.EANValidator
:These don't work for instance:
756.7554.3943.80
756.4334.3999.00
As mentionned in the pull request, this is an issue about the
calculated_checksum
which can be10
, which cannot be compared to a single-digit.The text was updated successfully, but these errors were encountered: