Opened 6 years ago

Closed 6 years ago

#29816 closed Bug (duplicate)

Bug fix for ticket #29138

Reported by: Constantino Schillebeeckx Owned by: nobody
Component: contrib.admin Version: 2.1
Severity: Normal Keywords: autocomplete_fields
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Constantino Schillebeeckx)

I've put together a bug fix for the case when autocomplete_fields is used on a foreign-key field that has on_fields specified; bug originally reported here.

Note I've been able to update all unit tests and create some new ones, however the original ticket mentions using to_field_allowed to prevent data leaks. I've tried to implement it (see here), however I can't get it to play nicely with the unit tests. When uncommented, the id_field isn't properly being considered as to_field_allowed. I'm not familiar with this function, so could use some help troubleshooting.

Change History (2)

comment:1 by Constantino Schillebeeckx, 6 years ago

Description: modified (diff)

comment:2 by Tim Graham, 6 years ago

Resolution: duplicate
Status: newclosed

Please leave a comment on #29138 rather than open a new ticket.

Note: See TracTickets for help on using tickets.
Back to Top