Ticket #9335: empty_field_unicode.diff
File empty_field_unicode.diff, 565 bytes (added by , 16 years ago) |
---|
-
django/forms/fields.py
665 665 class TypedChoiceField(ChoiceField): 666 666 def __init__(self, *args, **kwargs): 667 667 self.coerce = kwargs.pop('coerce', lambda val: val) 668 self.empty_value = kwargs.pop('empty_value', '')668 self.empty_value = kwargs.pop('empty_value', u'') 669 669 super(TypedChoiceField, self).__init__(*args, **kwargs) 670 670 671 671 def clean(self, value):