Opened 17 years ago

Last modified 17 years ago

#4663 closed

UnicodeDecodeError with SelectDateWidget — at Initial Version

Reported by: boobsd@… Owned by: nobody
Component: Forms Version: dev
Severity: Keywords: SelectDateWidget
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

My form:

class EditProfileForm(forms.Form):

birthday = forms.DateField(widget=SelectDateWidget(years=range(1968, 1988)), label=_('Birthday'))

If USE_I18N = True in settings, I receive UnicodeDecodeError:

Request Method: GET
Exception Type: UnicodeDecodeError
Exception Value: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
Exception Location: /usr/local/lib/python2.4/site-packages/django/newforms/widgets.py in render, line 173

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top