1
0
mirror of https://github.com/django/django.git synced 2025-01-03 23:16:41 +00:00
django/tests/admin_views
Johannes Maron 03d0f12c82 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.

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 11:21:23 +01:00
..
templates
__init__.py
admin.py Removed unused code in admin_views tests. 2021-02-26 20:49:21 +01:00
custom_has_permission_admin.py
customadmin.py
forms.py
models.py Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 11:21:23 +01:00
test_actions.py Refs #25780 -- Removed redundant status code assertions from tests. 2020-10-28 12:26:49 +01:00
test_adminsite.py
test_autocomplete_view.py Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 11:21:23 +01:00
test_forms.py
test_history_view.py Fixed typo in tests/admin_views/test_history_view.py test name. 2020-12-18 09:23:22 +01:00
test_multidb.py
test_nav_sidebar.py Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10. 2021-03-02 20:35:33 +01:00
test_templatetags.py
tests.py Fixed #26607 -- Allowed customizing formset kwargs with ModelAdmin.get_formset_kwargs(). 2021-02-15 11:37:35 +01:00
urls.py Fixed #31747 -- Fixed model enumeration via admin URLs. 2021-01-12 14:37:56 +01:00
views.py