mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.8.x] Added missing return value to DurationField.prepare_value(); refs #24339.
Backport of 49647bec6e from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							87e9cad4a4
						
					
				
				
					commit
					e13dca859c
				
			| @@ -640,6 +640,7 @@ class FieldsTests(SimpleTestCase): | ||||
|         field = DurationField() | ||||
|         td = datetime.timedelta(minutes=15, seconds=30) | ||||
|         self.assertEqual(field.prepare_value(td), duration_string(td)) | ||||
|         self.assertEqual(field.prepare_value('arbitrary'), 'arbitrary') | ||||
|         self.assertIsNone(field.prepare_value(None)) | ||||
|  | ||||
|     # RegexField ################################################################## | ||||
|   | ||||
		Reference in New Issue
	
	Block a user