| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 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 | |
| 2018-11-20 | Fixed #29282 -- Prevented some admin checks from crashing with TypeError. | Sanyam Khurana | |
| Co-authored-by: David Sanders <dsanders11@ucsbalum.com> | |||
| 2018-11-09 | Fixed #29917 -- Stopped collecting ModelAdmin.actions from base ModelAdmins. | Matthias Kestenholz | |
| 2018-10-31 | Fixed #29901 -- Allowed overriding an ↵ | Javier Matos Odut | |
| autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset(). | |||
| 2018-10-02 | Fixed #29711 -- Added a system check for uniquness of admin actions' __name__. | Przemysław Buczkowski | |
| 2018-08-30 | Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't ↵ | Tim Graham | |
| accept the obj argument. * Refs #27991 -- Added testing for ModelAdmin.get_inline_instances() if the inline's has_add_permission() doesn't accept 'obj'. * Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't accept the obj argument. | |||
| 2018-06-18 | Fixed #29419 -- Allowed permissioning of admin actions. | Carlton Gibson | |
| 2018-06-15 | Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use ↵ | Henk Kahlfuß | |
| has_delete_permission() for permissions checking. | |||
| 2018-06-14 | Refs #29428 -- Fixed admin check crash when using a query expression in ↵ | Tim Graham | |
| ModelAdmin.ordering. | |||
| 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-05-09 | Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage(). | Morgan Aubert | |
| 2018-04-16 | Fixed inconsistent formatting in tests/modeladmin/test_checks.py. | Tim Graham | |
