mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2
This commit is contained in:
		| @@ -372,7 +372,7 @@ class ClearableFileInput(FileInput): | ||||
|         """ | ||||
|         Return whether value is considered to be initial value. | ||||
|         """ | ||||
|         return bool(value and hasattr(value, 'url')) | ||||
|         return bool(value and getattr(value, 'url', False)) | ||||
|  | ||||
|     def get_template_substitution_values(self, value): | ||||
|         """ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user