| 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 #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-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. | |||
| 2026-01-12 | Fixed #36804 -- Fixed admin system check crash for missing models. | Parth Paradkar | |
| 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-05-08 | Fixed #36363 -- Added field names to admin duplicated fields error hint. | Eric Blum | |
| 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-08-05 | Fixed #35628 -- Allowed compatible GeneratedFields for ↵ | John Parton | |
| ModelAdmin.date_hierarchy. | |||
| 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-02-05 | Fixed #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> | |||
| 2024-01-08 | Fixed #35087 -- Reallowed filtering against foreign keys not listed in ↵ | Sarah Boyce | |
| ModelAdmin.list_filters. Regression in f80669d2f5a5f1db9e9b73ca893fefba34f955e7. | |||
| 2023-12-27 | Fixed #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-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-11-02 | Fixed #34927 -- Fixed admin system check for inlines with foreign keys to ↵ | Antoine Cheneau | |
| proxy models. Follow up to 0e8be73812a6e62d5a6b12a585d133b56bc2bf52. | |||
| 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-06-21 | Fixed #34345 -- Added system check for ManyToManyFields with intermediate ↵ | Hrushikesh | |
| tables in ModelAdmin.filter_horizontal/vertical. | |||
| 2023-05-02 | Fixed #34513 -- Added system check for relational fields in ↵ | Bakdolot | |
| ModelAdmin.list_display. | |||
| 2023-04-24 | Fixed #34481 -- Added system check for reverse related fields in ↵ | Bakdolot | |
| ModelAdmin.list_display. | |||
| 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 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-02-03 | Refs #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], ) | |||
| 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-09-03 | Fixed #32975 -- Fixed admin system check for inlines with foreign keys to ↵ | taulant | |
| proxy models. | |||
| 2021-07-05 | Refs #24121 -- Added __repr__() to AdminSite, DefaultAdminSite, and ModelAdmin. | Eduardo Aldair Ahumada Garcia Jurado | |
| Thanks tlebrize for the initial patch. | |||
| 2021-03-04 | Fixed #32494 -- Adjusted system check for raw_id_fields to warn about ↵ | Hasan Ramezani | |
| Field.attname. | |||
| 2021-03-04 | Corrected messages of admin checks for invalid model field names. | Hasan Ramezani | |
| 2021-01-13 | Fixed #16117 -- Added decorators for admin action and display functions. | Nick Pope | |
| Refs #25134, #32099. | |||
| 2020-11-13 | Unified admin action description generation. | Nick Pope | |
| Actions added to AdminSite.actions would not have the first character of their description capitalized. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 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 | |
| 2020-04-17 | Fixed #30311 -- Restored ability to override global admin actions. | hashlash | |
| 2020-01-10 | Fixed #30980 -- Improved error message when checking uniqueness of admin ↵ | Adam Donaghy | |
| actions' __name__. Thanks Keshav Kumar for the initial patch. | |||
| 2019-07-10 | Fixed #30543 -- Fixed checks of ModelAdmin.list_display for fields ↵ | Hasan Ramezani | |
| accessible only via instance. Co-Authored-By: Andrew Simons <andrewsimons@bubblegroup.com> | |||
| 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-12-03 | Fixed #29930 -- Allowed editing in admin with view-only inlines. | Carlton Gibson | |
| Co-authored-by: Tim Graham <timograham@gmail.com> | |||
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
