summaryrefslogtreecommitdiff
path: root/tests/modeladmin/test_checks.py
AgeCommit message (Collapse)Author
2026-06-05Fixed #36984 -- Made inline formset error messages respect ↵Karolis Ryselis
delete_confirmation_max_display.
2026-05-11Refs #36593 -- Deprecated setting ModelAdmin.list_select_related to True.Adam Johnson
Now that calling `QuerySet.select_related()` without arguments is deprecated, this commit deprecates the corresponding admin features.
2026-04-22Fixed #10919 -- Added delete_confirmation_max_display to ModelAdmin.Rodrigo Vieira
The new ModelAdmin.delete_confirmation_max_display attribute allows limiting the number of related objects shown on the delete confirmation page. When the limit is reached, a "…and N more objects." message is shown. The feature relies on a new truncated_unordered_list template filter added to django.contrib.admin.templatetags.admin_filters. Thanks Jacob Tyler Walls for the review and guidance, Tobias McNulty for the report, and terminator14 for the solution suggested.
2026-01-12Fixed #36804 -- Fixed admin system check crash for missing models.Parth Paradkar
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-05-08Fixed #36363 -- Added field names to admin duplicated fields error hint.Eric Blum
2024-08-05Fixed #35628 -- Allowed compatible GeneratedFields for ↵John Parton
ModelAdmin.date_hierarchy.
2024-02-05Fixed #10743 -- Allowed lookups for related fields in ModelAdmin.list_display.Tom Carrick
Co-authored-by: Alex Garcia <me@alexoteiza.com> Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Co-authored-by: Nina Menezes <https://github.com/nmenezes0>
2023-12-27Fixed #35056 -- Fixed system check crash on reverse m2m relations with ↵Mariusz Felisiak
related_name in ModelAdmin.filter_horizontal/vertical. Thanks Thomas Feldmann for the report. Regression in 107865780aa44914e21d27fdf4ca269bc61c7f01.
2023-11-02Fixed #34927 -- Fixed admin system check for inlines with foreign keys to ↵Antoine Cheneau
proxy models. Follow up to 0e8be73812a6e62d5a6b12a585d133b56bc2bf52.
2023-06-21Fixed #34345 -- Added system check for ManyToManyFields with intermediate ↵Hrushikesh
tables in ModelAdmin.filter_horizontal/vertical.
2023-05-02Fixed #34513 -- Added system check for relational fields in ↵Bakdolot
ModelAdmin.list_display.
2023-04-24Fixed #34481 -- Added system check for reverse related fields in ↵Bakdolot
ModelAdmin.list_display.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
2021-09-03Fixed #32975 -- Fixed admin system check for inlines with foreign keys to ↵taulant
proxy models.
2021-03-04Fixed #32494 -- Adjusted system check for raw_id_fields to warn about ↵Hasan Ramezani
Field.attname.
2021-03-04Corrected messages of admin checks for invalid model field names.Hasan Ramezani
2021-01-13Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope
Refs #25134, #32099.
2020-01-10Fixed #30980 -- Improved error message when checking uniqueness of admin ↵Adam Donaghy
actions' __name__. Thanks Keshav Kumar for the initial patch.
2019-07-10Fixed #30543 -- Fixed checks of ModelAdmin.list_display for fields ↵Hasan Ramezani
accessible only via instance. Co-Authored-By: Andrew Simons <andrewsimons@bubblegroup.com>
2018-11-20Fixed #29282 -- Prevented some admin checks from crashing with TypeError.Sanyam Khurana
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
2018-10-02Fixed #29711 -- Added a system check for uniquness of admin actions' __name__.Przemysław Buczkowski
2018-06-18Fixed #29419 -- Allowed permissioning of admin actions.Carlton Gibson
2018-06-14Refs #29428 -- Fixed admin check crash when using a query expression in ↵Tim Graham
ModelAdmin.ordering.
2018-04-16Fixed inconsistent formatting in tests/modeladmin/test_checks.py.Tim Graham
2018-04-13Fixed #29322 -- Made admin check all ModelAdmin fieldsets for duplicates.Matthias Kestenholz
2017-12-28Removed unnecessary trailing commas and spaces in various code.Mariusz Felisiak
2017-12-13Fixed #28898 -- Corrected admin check to allow a OneToOneField in ↵Rodrigo Pinheiro Marques de Araújo
ModelAdmin.autocomplete_fields.
2017-09-18Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe
ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.
2017-06-02Improved test coverage of contrib/admin/checks.py.Anton Samarchyan
2017-03-02Fixed #27889 -- Fixed incorrect check error if ModelAdmin.ordering refers to ↵David Szotten
'pk'.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-22Fixed #26632 -- Skipped admin.E111 list_display_links check if ↵Anton Samarchyan
get_list_display() is overridden.
2016-12-21Moved modeladmin check tests to a separate file.Tim Graham