Ticket #13621: ticket13621-alternative3-tested.diff
File ticket13621-alternative3-tested.diff, 1.5 KB (added by , 14 years ago) |
---|
-
django/forms/fields.py
323 323 } 324 324 325 325 def __init__(self, input_formats=None, *args, **kwargs): 326 kwargs['localize'] = kwargs.get('localize', True) # Default localize to True in date / time fields 326 327 super(DateField, self).__init__(*args, **kwargs) 327 328 self.input_formats = input_formats 328 329 … … 351 352 } 352 353 353 354 def __init__(self, input_formats=None, *args, **kwargs): 355 kwargs['localize'] = kwargs.get('localize', True) # Default localize to True in date / time fields 354 356 super(TimeField, self).__init__(*args, **kwargs) 355 357 self.input_formats = input_formats 356 358 … … 377 379 } 378 380 379 381 def __init__(self, input_formats=None, *args, **kwargs): 382 kwargs['localize'] = kwargs.get('localize', True) # Default localize to True in date / time fields 380 383 super(DateTimeField, self).__init__(*args, **kwargs) 381 384 self.input_formats = input_formats 382 385 … … 842 845 errors = self.default_error_messages.copy() 843 846 if 'error_messages' in kwargs: 844 847 errors.update(kwargs['error_messages']) 848 kwargs['localize'] = kwargs.get('localize', True) # Default localize to True in date / time fields 845 849 localize = kwargs.get('localize', False) 846 850 fields = ( 847 851 DateField(input_formats=input_date_formats,