| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-04-24 | Reverted inadvertent changes to PK formatting in tests. | Tim Graham | |
| Bad conflict resolution in 63c56cda133a85a158502891c40465bc0331d3d9 reverted bits of d007fcf7291cc3c24d4545e23c759bde22b6a8a6. | |||
| 2026-04-22 | Fixed #35870 -- Made blank choice label in forms more accessible. | Annabelle Wiegart | |
| Added new constant django.db.models.fields.BLANK_CHOICE_LABEL for an accessible and translatable blank choice label in forms. Deprecated django.db.models.fields.BLANK_CHOICE_DASH constant. Added the immediately deprecated transitional setting USE_BLANK_CHOICE_DASH. Co-Authored-By: Marijke Luttekes <mail@marijkeluttekes.dev> | |||
| 2026-04-03 | Refs #36949 -- Removed hardcoded pks in modeladmin tests. | Tim Graham | |
| 2026-04-02 | Fixed #36949 -- Improved RelatedFieldWidgetWrapper <label>s. | David Smith | |
| Regression in 4187da258fe212d494cb578a0bc2b52c4979ab95. | |||
| 2026-02-10 | Modified tests to format PKs with %s rather than %d. | Tim Graham | |
| It's how Django formats values internally and makes tests compatible with databases that use non-integer primary keys. | |||
| 2025-07-23 | Refs #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-07-23 | Removed double spaces after periods and within phrases. | Sarah Boyce | |
| 2025-01-15 | Refs #34462 -- Removed ModelAdmin.log_deletion() and ↵ | Sarah Boyce | |
| LogEntryManager.log_action() per deprecation timeline. | |||
| 2025-01-15 | Refs #22569 -- Made request required in ModelAdmin.lookup_allowed() per ↵ | Sarah Boyce | |
| deprecation timeline. | |||
| 2024-08-28 | Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test ↵ | Simon Charette | |
| suite accordingly. Over the years we've had multiple instances of hit and misses when emitting warnings: either setting the wrong stacklevel or not setting it at all. This work adds assertions for the existing warnings that were declaring the correct stacklevel, but were lacking tests for it. | |||
| 2024-06-12 | Fixed #34789 -- Prevented updateRelatedSelectsOptions from | Devin Cox | |
| adding entries to filter_horizontal chosen box. Co-authored-by: yokeshwaran1 <yokesh440@yahoo.com> | |||
| 2024-02-14 | Fixed #35173 -- Fixed ModelAdmin.lookup_allowed() for lookups on foreign ↵ | Hisham Mahmood | |
| keys when not included in ModelAdmin.list_filter. Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7. Thanks Sarah Boyce for the review. | |||
| 2024-01-08 | Fixed #35087 -- Reallowed filtering against foreign keys not listed in ↵ | Sarah Boyce | |
| ModelAdmin.list_filters. Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7. | |||
| 2023-12-07 | Fixed #35020 -- Fixed ModelAdmin.lookup_allowed() for non-autofield primary ↵ | Sarah Boyce | |
| keys. Thanks Joshua Goodwin for the report. Regression in 45ecd9acca9b36093e274f47b6877a5f79108d9e. | |||
| 2023-10-31 | Fixed #34462 -- Made admin log actions in bulk. | Akash Kumar Sen | |
| This also deprecates ModelAdmin.log_deletion() and LogEntryManager.log_action(). | |||
| 2023-10-31 | Refs #34462 -- Moved ModelAdmin.log_deletion() test to a separate test case. | Akash Kumar Sen | |
| 2023-07-07 | Fixed #9602 -- Added AdminSite.get_model_admin(). | Mariusz Felisiak | |
| This allows retrieving an admin class for the given model class without using internal attributes. | |||
| 2023-04-17 | Fixed #22569 -- Made ModelAdmin.lookup_allowed() respect get_list_filter(). | sarahboyce | |
| Thank you Simon Meers for the initial patch. | |||
| 2023-03-28 | Fixed #28384 -- Fixed ModelAdmin.lookup_allowed() for OneToOneField primary ↵ | sarahboyce | |
| keys and nested relations. | |||
| 2023-02-01 | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | |||
| 2022-04-15 | Fixed #11803 -- Allowed admin select widgets to display new related objects. | mgaligniana | |
| Adjusted admin javascript to add newly created related objects to already loaded select widgets. In this version, applies only where limit_choices_to is not set. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-01-11 | Fixed #11715 -- Changed default value of ModelAdmin.actions/inlines to empty ↵ | Jacob Walls | |
| tuples. This clarifies the intended pattern of overwriting the default value rather than mutating it. | |||
| 2021-07-05 | Refs #24121 -- Added __repr__() to AdminSite, DefaultAdminSite, and ModelAdmin. | Eduardo Aldair Ahumada Garcia Jurado | |
| Thanks tlebrize for the initial patch. | |||
| 2020-09-14 | Fixed #32003 -- Added obj argument to has_perm() methods in tests. | Alexander Todorov | |
| 2020-05-15 | Refs #31395 -- Relied on setUpTestData() test data isolation in various tests. | Simon Charette | |
| 2019-01-17 | Refs #27991 -- Made obj a required argument of ↵ | Tim Graham | |
| InlineModelAdmin.has_add_permission(). Per deprecation timeline. | |||
| 2019-01-11 | Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() ↵ | MaximZemskov | |
| optional. Restored backwards compatibility after refs #27991. Regression in be6ca89396c031619947921c81b8795d816e3285. | |||
| 2018-10-31 | Fixed #29901 -- Allowed overriding an ↵ | Javier Matos Odut | |
| autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset(). | |||
| 2018-06-15 | Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use ↵ | Henk Kahlfuß | |
| has_delete_permission() for permissions checking. | |||
| 2018-06-13 | Refs #29419, #8936 -- Removed change permission requirement for admin actions. | Carlton Gibson | |
| Partially reverted 825f0beda804e48e9197fcf3b0d909f9f548aa47. | |||
| 2018-05-16 | Fixed #8936 -- Added a view permission and a read-only admin. | olivierdalang | |
| Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com> | |||
| 2018-04-04 | Fixed #27991 -- Added obj arg to InlineModelAdmin.has_add_permission(). | Jon Dufresne | |
| Thanks Vladimir Ivanov for the initial patch. | |||
| 2018-02-24 | Fixed #17962 -- Added ModelAdmin.get_deleted_objects(). | Becky Smith | |
| 2018-02-02 | Fixed imports per isort 4.3.1. | Tim Graham | |
| Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c. | |||
| 2018-02-01 | Fixed imports per isort 4.3.0. | Mariusz Felisiak | |
| 2018-01-03 | Fixed #28984 -- Made assorted code simplifications. | Tim Graham | |
| 2017-09-18 | Fixed #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-09-03 | Refs #27804 -- Used subTest() in a modeladmin test. | Nick Pope | |
| 2017-06-19 | Added a test for ModelAdmin.__str__(). | Anton Samarchyan | |
| 2017-06-01 | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | |
| 2017-02-07 | Fixed #27356 -- Fixed ModelAdmin.lookup_allowed() for some nested relations. | Anton Samarchyan | |
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-19 | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-12-21 | Moved modeladmin check tests to a separate file. | Tim Graham | |
| 2016-12-19 | Fixed #27377 -- Clarified that prepopulated_fields doesn't work with ↵ | Henry Dang | |
| OneToOneField. | |||
| 2016-12-07 | Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase. | Tim Graham | |
| 2016-11-14 | Fixed E305 flake8 warnings. | Ramin Farajpour Cami | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
