to_field lost when adding via raw_id_fields
|Reported by:||Collin Anderson||Owned by:||Peter Sheats|
|Cc:||Collin Anderson||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When using to_field with raw_id_fields, you get a popup to select an object to connect the ForeignKey to. This correctly handles to_field.
However, you also have the option of adding a new object from the popup. When you add the new object, the popup is closed the the primary key is sent back to the raw_id widget.
As far as I can tell, this has never worked correctly in django. (at least since 1.2)
I have a simple django app that can be used to reproduce the problem:
Change History (12)
comment:6 Changed 4 years ago by
|Owner:||changed from nobody to Collin Anderson|
|Status:||new → assigned|