mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-11-04 04:22:19 +01:00 
			
		
		
		
	Suspension temporaire des checksums invalides
This commit is contained in:
		@@ -21,8 +21,8 @@ def isbn_validator(raw_isbn):
 | 
				
			|||||||
    if len(isbn_to_check) != 10 and len(isbn_to_check) != 13:
 | 
					    if len(isbn_to_check) != 10 and len(isbn_to_check) != 13:
 | 
				
			||||||
        raise ValidationError(_('Invalid ISBN: Wrong length'))
 | 
					        raise ValidationError(_('Invalid ISBN: Wrong length'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if not isbn.is_valid(isbn_to_check):
 | 
					    #if not isbn.is_valid(isbn_to_check):
 | 
				
			||||||
        raise ValidationError(_('Invalid ISBN: Failed checksum'))
 | 
					    #    raise ValidationError(_('Invalid ISBN: Failed checksum'))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if isbn_to_check != isbn_to_check.upper():
 | 
					    if isbn_to_check != isbn_to_check.upper():
 | 
				
			||||||
        raise ValidationError(_('Invalid ISBN: Only upper case allowed'))
 | 
					        raise ValidationError(_('Invalid ISBN: Only upper case allowed'))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user