Ticket #9335: empty_field_unicode.diff

File empty_field_unicode.diff, 565 bytes (added by fas, 7 years ago)
  • django/forms/fields.py

     
    665665class TypedChoiceField(ChoiceField):
    666666    def __init__(self, *args, **kwargs):
    667667        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'')
    669669        super(TypedChoiceField, self).__init__(*args, **kwargs)
    670670       
    671671    def clean(self, value):
Back to Top