ModelForm doesn't work correctly when initial is a MultiValueDict
|Reported by:||Matthias Pronk <django@…>||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)
Changed 6 years ago by Matthias Pronk <django@…>
comment:1 Changed 6 years ago by brosner
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin