django / django-localflavor

Country-specific Django helpers, formerly of contrib fame
https://django-localflavor.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
833 stars 292 forks source link

IBAN validator failed for Italy #485

Closed softwaredevPK closed 1 year ago

softwaredevPK commented 1 year ago

IBANValidator doesn't check properly iban for Italy. It hasn't raised an ValidationError for below iban: IT2813815463652787128285355

Missing is Country code: https://wise.com/hk/iban/italy

claudep commented 1 year ago

Would you be able to write a patch (with a test)?

softwaredevPK commented 1 year ago

Yup, I would dig into it.

benkonrath commented 1 year ago

The validator isn't checking the BBAN. I can make a quick PR to fix this without string changes before tomorrow's Friday's release.

Edit: Fixed release day.