django/tests/admin_widgets
Johannes Maron a8fef6daaf [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases.
In MTI or ForeignKey as primary key cases, it is required to fetch the attname
from the field instance on the remote model in order to reliably resolve the
to_field_name.

Backport of ceb4b9ee68 from main Backport of 03d0f12c82 from main

Co-authored-by: Johannes Maron <info@johanneshoppe.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2021-03-18 14:21:12 +01:00
..
__init__.py
models.py [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 14:21:12 +01:00
test_autocomplete_widget.py [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 14:21:12 +01:00
tests.py [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 14:21:12 +01:00
urls.py Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00
widgetadmin.py [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 14:21:12 +01:00