django/tests/admin_views
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
..
templates Refs #26761 -- Removed extra space in admin change list result header. 2020-06-25 06:33:12 +02:00
__init__.py
admin.py Fixed #16117 -- Added decorators for admin action and display functions. 2021-01-13 17:19:22 +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 [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 14:21:12 +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 [3.2.x] Fixed #32466 -- Corrected autocomplete to_field resolution for complex cases. 2021-03-18 14:21:12 +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 Fixed #31865 -- Adjusted admin nav sidebar template to reduce debug logging. 2020-08-11 11:42:15 +02:00
test_templatetags.py Added tests for date_hierarchy template tag with models.DateTimeField. 2020-03-25 21:03:23 +01:00
tests.py [3.2.x] Refs #32365 -- Allowed use of non-pytz timezone implementations. 2021-01-19 12:00:40 +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