id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 570,formfields.SelectField doesn't select correct value for ForeignKey,Maniac ,Adrian Holovaty,"formfields.SelectField renders withou ""selected"" attribute set to the correct option. This happens because FormWrapper fetches 'data' for SelectField.render() by its field_name. However most of the times real data for the field is stored in form's dict under field_name+'_id' key. This effectively breaks every form with the ForeignKey generated by generic view 'update_object' or with Manipulators as described in docs at http://www.djangoproject.com/documentation/forms/ Patch follows...",defect,closed,Core (Other),,normal,duplicate,,,Unreviewed,0,0,0,0,0,0