Ticket #6035: splitdatetimefield.diff
File splitdatetimefield.diff, 1.0 KB (added by , 17 years ago) |
---|
-
django/newforms/fields.py
20 20 from django.utils.encoding import StrAndUnicode, smart_unicode 21 21 22 22 from util import ErrorList, ValidationError 23 from widgets import TextInput, PasswordInput, HiddenInput, MultipleHiddenInput, FileInput, CheckboxInput, Select, NullBooleanSelect, SelectMultiple, DateTimeInput 23 from widgets import TextInput, PasswordInput, HiddenInput, MultipleHiddenInput, FileInput, CheckboxInput, Select, NullBooleanSelect, SelectMultiple, DateTimeInput, SplitDateTimeWidget 24 24 25 25 26 26 __all__ = ( … … 733 733 DateField(error_messages={'invalid': errors['invalid_date']}), 734 734 TimeField(error_messages={'invalid': errors['invalid_time']}), 735 735 ) 736 self.widget = SplitDateTimeWidget 736 737 super(SplitDateTimeField, self).__init__(fields, *args, **kwargs) 737 738 738 739 def compress(self, data_list):