newforms.ModelChoiceField fails to clean()
|Reported by:||Jamey Hicks <jamey.hicks@…>||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
newforms ModelChoiceField successfully resolves a value given a primary key pk, but then in clean() attempts to look it up again using the object named by value rather than value.pk.