0001-misc-remove-unnecessary-parameter-in-SIRET-regex-val.patch
src/authentic2/attribute_kinds.py | ||
---|---|---|
400 | 400 | |
401 | 401 | |
402 | 402 |
def validate_siret(value): |
403 |
RegexValidator(r'^( *[0-9] *){14}$', _('SIRET number must contain 14 digits'), 'coin')(value)
|
|
403 |
RegexValidator(r'^( *[0-9] *){14}$', _('SIRET number must contain 14 digits'))(value) |
|
404 | 404 |
value = only_digits(value) |
405 | 405 |
if not validate_lun(value) or not validate_lun(value[:9]): |
406 | 406 |
raise ValidationError(_('SIRET validation code does not match')) |
407 |
- |