mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[2.0.x] Fixed #28562 -- Fixed DecimalValidator handling of positive exponent scientific notation.
Backport of e8c4596329 from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							5b38d7e973
						
					
				
				
					commit
					7c6590af5f
				
			| @@ -265,6 +265,7 @@ TEST_DATA = [ | ||||
|     (DecimalValidator(max_digits=3, decimal_places=1), Decimal('999'), ValidationError), | ||||
|     (DecimalValidator(max_digits=4, decimal_places=1), Decimal('999'), None), | ||||
|     (DecimalValidator(max_digits=20, decimal_places=2), Decimal('742403889818000000'), None), | ||||
|     (DecimalValidator(20, 2), Decimal('7.42403889818E+17'), None), | ||||
|     (DecimalValidator(max_digits=20, decimal_places=2), Decimal('7424742403889818000000'), ValidationError), | ||||
|     (DecimalValidator(max_digits=5, decimal_places=2), Decimal('7304E-1'), None), | ||||
|     (DecimalValidator(max_digits=5, decimal_places=2), Decimal('7304E-3'), ValidationError), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user