From 10417242f4fbcfb6bf9766bcd4a7d35453daf2be Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 20 Feb 2020 17:32:50 +0100 Subject: [PATCH] Suspension temporaire des checksums invalides --- media/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/validators.py b/media/validators.py index d528ed1..151c90f 100644 --- a/media/validators.py +++ b/media/validators.py @@ -21,8 +21,8 @@ def isbn_validator(raw_isbn): if len(isbn_to_check) != 10 and len(isbn_to_check) != 13: raise ValidationError(_('Invalid ISBN: Wrong length')) - if not isbn.is_valid(isbn_to_check): - raise ValidationError(_('Invalid ISBN: Failed checksum')) + #if not isbn.is_valid(isbn_to_check): + # raise ValidationError(_('Invalid ISBN: Failed checksum')) if isbn_to_check != isbn_to_check.upper(): raise ValidationError(_('Invalid ISBN: Only upper case allowed'))