ModelForm doesn't work correctly when initial is a MultiValueDict
|Reported by:||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
ModelForm should handle a QueryDict as initial data.
One of the uses would be in to be able to pass initial values by GET parameters (see #6938).
This patch fixes it in the ModelForm itself instead of in the Admin code.
Thanks to brosner on #django for the help! (basically fixing it ;)
Change History (4)
comment:1 Changed 9 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Ready for checkin|