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 Refs #26761 -- Removed extra space in admin change list result header. 2020-06-25 06:33:12 +02:00
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
admin.py Removed unused code in admin_views tests. 2021-02-26 20:49:21 +01:00
custom_has_permission_admin.py Changed django.forms.ValidationError imports to django.core.exceptions.ValidationError. 2020-04-28 10:49:00 +02:00
customadmin.py Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00
forms.py Changed django.forms.ValidationError imports to django.core.exceptions.ValidationError. 2020-04-28 10:49:00 +02:00
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 Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00
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 Fixed CVE-2018-6188 -- Fixed information leakage in AuthenticationForm. 2018-02-01 09:05:14 -05:00
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 Refs #31117 -- Made various tests properly handle unexpected databases aliases. 2020-01-20 14:39:02 +01:00
test_nav_sidebar.py Refs #21429 -- Added SimpleTestCase.assertNoLogs() on Python < 3.10. 2021-03-02 20:35:33 +01:00
test_templatetags.py Added tests for date_hierarchy template tag with models.DateTimeField. 2020-03-25 21:03:23 +01:00
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 Changed `'%s' % value` pattern to `str(value)`. 2020-05-04 08:27:18 +02:00