to_field and raw_id_fields popup in ModelAdmin
|Reported by:||David Cramer||Owned by:||nobody|
|Severity:||Keywords:||raw_id_field, to_field, lookup|
|Cc:||Collin Anderson||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When using a to_field on a raw_id_field it fails under the following conditions:
1) Click the hourglass to find a foreign key.
2) Search (or filter)
3) Click the entry.
It inserts the primary key rather than the to_field.
However, if you do not search/filter it works just fine.
The problem seems to be with the fact that t=to_field is not passed on the search/filter.
Change History (12)
comment:4 Changed 7 years ago by
|Patch needs improvement:||set|
|Summary:||to_field and raw_id_fields in ModelAdmin → to_field and raw_id_fields popup in ModelAdmin|
|Version:||SVN → 1.1|
comment:7 Changed 6 years ago by
|Triage Stage:||Accepted → Ready for checkin|