Ticket #13390: 13390.fix.patch
File 13390.fix.patch, 591 bytes (added by , 15 years ago) |
---|
-
django/forms/fields.py
=== modified file 'django/forms/fields.py'
397 397 # components: date and time. 398 398 if len(value) != 2: 399 399 raise ValidationError(self.error_messages['invalid']) 400 if value[0] in validators.EMPTY_VALUES and value[1] in validators.EMPTY_VALUES: 401 return None 400 402 value = '%s %s' % tuple(value) 401 403 for format in self.input_formats or formats.get_format('DATETIME_INPUT_FORMATS'): 402 404 try: