ModelForm initial value is handled wrong
|Reported by:||Martín Conte Mac Donell <Reflejo@…>||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When add_view is called with some initial value (when request.GET isn't null); add_view is instancing ModelForm with initial=request.GET which is wrong since values of QueryDict are list.
Actually BaseForm is trying to find something like [u'value'] in DB.
I think it should be a dictionary instead. (see patch below)