Opened 11 years ago

Closed 11 years ago

#5728 closed (duplicate)

SelectDateWidget does not work with

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


If I'm creating a form to update an existing object, I pass in the date from the object. This is a but the SelectDateWidget in newforms.extras.widgets expects it to be a string, or else it does not set the values on the select boxes correctly.

I solved the problem by forcing the incoming value to be a string.


value = str(value)

at line 33 of django/newforms/extras/ (using revision 6468)

Change History (1)

comment:1 Changed 11 years ago by Matt McClanahan

Resolution: duplicate
Status: newclosed

Duplicated by #5917, which has patches.

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