Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34513 -- Added system check for relational fields in ↵ | Bakdolot | 2023-05-02 | 1 | -0/+24 |
| | | | | ModelAdmin.list_display. | ||||
* | Fixed #34481 -- Added system check for reverse related fields in ↵ | Bakdolot | 2023-04-24 | 1 | -1/+14 |
| | | | | ModelAdmin.list_display. | ||||
* | Fixed #22569 -- Made ModelAdmin.lookup_allowed() respect get_list_filter(). | sarahboyce | 2023-04-17 | 1 | -7/+89 |
| | | | | Thank you Simon Meers for the initial patch. | ||||
* | Fixed #28384 -- Fixed ModelAdmin.lookup_allowed() for OneToOneField primary ↵ | sarahboyce | 2023-03-28 | 1 | -0/+29 |
| | | | | keys and nested relations. | ||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -0/+2 |
| | | | | | | | | 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 | ||||
* | Fixed #11803 -- Allowed admin select widgets to display new related objects. | mgaligniana | 2022-04-15 | 1 | -2/+2 |
| | | | | | | | 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. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -7/+12 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 4 | -537/+701 |
| | |||||
* | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | 2022-02-03 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | 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], ) | ||||
* | Fixed #11715 -- Changed default value of ModelAdmin.actions/inlines to empty ↵ | Jacob Walls | 2022-01-11 | 1 | -0/+5 |
| | | | | | | | tuples. This clarifies the intended pattern of overwriting the default value rather than mutating it. | ||||
* | Fixed #32975 -- Fixed admin system check for inlines with foreign keys to ↵ | taulant | 2021-09-03 | 1 | -1/+28 |
| | | | | proxy models. | ||||
* | Refs #24121 -- Added __repr__() to AdminSite, DefaultAdminSite, and ModelAdmin. | Eduardo Aldair Ahumada Garcia Jurado | 2021-07-05 | 1 | -0/+7 |
| | | | | Thanks tlebrize for the initial patch. | ||||
* | Fixed #32494 -- Adjusted system check for raw_id_fields to warn about ↵ | Hasan Ramezani | 2021-03-04 | 1 | -0/+12 |
| | | | | Field.attname. | ||||
* | Corrected messages of admin checks for invalid model field names. | Hasan Ramezani | 2021-03-04 | 1 | -9/+9 |
| | |||||
* | Fixed #16117 -- Added decorators for admin action and display functions. | Nick Pope | 2021-01-13 | 2 | -9/+17 |
| | | | Refs #25134, #32099. | ||||
* | Unified admin action description generation. | Nick Pope | 2020-11-13 | 1 | -0/+25 |
| | | | | | | Actions added to AdminSite.actions would not have the first character of their description capitalized. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Fixed #32003 -- Added obj argument to has_perm() methods in tests. | Alexander Todorov | 2020-09-14 | 1 | -5/+5 |
| | |||||
* | Refs #31395 -- Relied on setUpTestData() test data isolation in various tests. | Simon Charette | 2020-05-15 | 1 | -2/+5 |
| | |||||
* | Fixed #30311 -- Restored ability to override global admin actions. | hashlash | 2020-04-17 | 1 | -0/+39 |
| | |||||
* | Fixed #30980 -- Improved error message when checking uniqueness of admin ↵ | Adam Donaghy | 2020-01-10 | 1 | -3/+2 |
| | | | | | | actions' __name__. Thanks Keshav Kumar for the initial patch. | ||||
* | Fixed #30543 -- Fixed checks of ModelAdmin.list_display for fields ↵ | Hasan Ramezani | 2019-07-10 | 1 | -1/+20 |
| | | | | | | accessible only via instance. Co-Authored-By: Andrew Simons <andrewsimons@bubblegroup.com> | ||||
* | Refs #27991 -- Made obj a required argument of ↵ | Tim Graham | 2019-01-17 | 2 | -135/+0 |
| | | | | | | InlineModelAdmin.has_add_permission(). Per deprecation timeline. | ||||
* | Fixed #30097 -- Made 'obj' arg of InlineModelAdmin.has_add_permission() ↵ | MaximZemskov | 2019-01-11 | 1 | -0/+24 |
| | | | | | | | optional. Restored backwards compatibility after refs #27991. Regression in be6ca89396c031619947921c81b8795d816e3285. | ||||
* | Fixed #29930 -- Allowed editing in admin with view-only inlines. | Carlton Gibson | 2018-12-03 | 1 | -0/+4 |
| | | | Co-authored-by: Tim Graham <timograham@gmail.com> | ||||
* | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | 2018-11-27 | 1 | -2/+5 |
| | |||||
* | Fixed #29282 -- Prevented some admin checks from crashing with TypeError. | Sanyam Khurana | 2018-11-20 | 1 | -5/+108 |
| | | | Co-authored-by: David Sanders <dsanders11@ucsbalum.com> | ||||
* | Fixed #29917 -- Stopped collecting ModelAdmin.actions from base ModelAdmins. | Matthias Kestenholz | 2018-11-09 | 1 | -0/+21 |
| | |||||
* | Fixed #29901 -- Allowed overriding an ↵ | Javier Matos Odut | 2018-10-31 | 1 | -0/+22 |
| | | | | autocomplete/raw_id_fields/radio_fields widget with ModelAdmin.get_formset(). | ||||
* | Fixed #29711 -- Added a system check for uniquness of admin actions' __name__. | Przemysław Buczkowski | 2018-10-02 | 1 | -0/+27 |
| | |||||
* | Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't ↵ | Tim Graham | 2018-08-30 | 1 | -0/+46 |
| | | | | | | | | 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. | ||||
* | Fixed #29419 -- Allowed permissioning of admin actions. | Carlton Gibson | 2018-06-18 | 2 | -0/+76 |
| | |||||
* | Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use ↵ | Henk Kahlfuß | 2018-06-15 | 1 | -1/+22 |
| | | | | has_delete_permission() for permissions checking. | ||||
* | Refs #29428 -- Fixed admin check crash when using a query expression in ↵ | Tim Graham | 2018-06-14 | 1 | -0/+19 |
| | | | | ModelAdmin.ordering. | ||||
* | Refs #29419, #8936 -- Removed change permission requirement for admin actions. | Carlton Gibson | 2018-06-13 | 1 | -13/+1 |
| | | | | Partially reverted 825f0beda804e48e9197fcf3b0d909f9f548aa47. | ||||
* | Fixed #8936 -- Added a view permission and a read-only admin. | olivierdalang | 2018-05-16 | 1 | -1/+43 |
| | | | | | Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com> | ||||
* | Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage(). | Morgan Aubert | 2018-05-09 | 1 | -9/+4 |
| | |||||
* | Fixed inconsistent formatting in tests/modeladmin/test_checks.py. | Tim Graham | 2018-04-16 | 1 | -2/+4 |
| | |||||
* | Fixed #29322 -- Made admin check all ModelAdmin fieldsets for duplicates. | Matthias Kestenholz | 2018-04-13 | 1 | -0/+13 |
| | |||||
* | Fixed #27991 -- Added obj arg to InlineModelAdmin.has_add_permission(). | Jon Dufresne | 2018-04-04 | 2 | -0/+82 |
| | | | | Thanks Vladimir Ivanov for the initial patch. | ||||
* | Fixed #17962 -- Added ModelAdmin.get_deleted_objects(). | Becky Smith | 2018-02-24 | 1 | -0/+10 |
| | |||||
* | Fixed imports per isort 4.3.1. | Tim Graham | 2018-02-02 | 1 | -1/+2 |
| | | | | Partially reverted 9bcf73d788866bc93f8248cb2e9d601ecbc4b50c. | ||||
* | Fixed imports per isort 4.3.0. | Mariusz Felisiak | 2018-02-01 | 1 | -2/+1 |
| | |||||
* | Fixed #28984 -- Made assorted code simplifications. | Tim Graham | 2018-01-03 | 1 | -12/+4 |
| | |||||
* | Removed unnecessary trailing commas and spaces in various code. | Mariusz Felisiak | 2017-12-28 | 1 | -4/+4 |
| | |||||
* | Fixed #28898 -- Corrected admin check to allow a OneToOneField in ↵ | Rodrigo Pinheiro Marques de Araújo | 2017-12-13 | 1 | -1/+14 |
| | | | | ModelAdmin.autocomplete_fields. | ||||
* | Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵ | Johannes Hoppe | 2017-09-18 | 3 | -7/+134 |
| | | | | | | | ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch. | ||||
* | Refs #27804 -- Used subTest() in a modeladmin test. | Nick Pope | 2017-09-03 | 1 | -4/+23 |
| | |||||
* | Added a test for ModelAdmin.__str__(). | Anton Samarchyan | 2017-06-19 | 1 | -0/+4 |
| | |||||
* | Improved test coverage of contrib/admin/checks.py. | Anton Samarchyan | 2017-06-02 | 1 | -0/+23 |
| | |||||
* | Refs #23968 -- Removed unnecessary lists, generators, and tuple calls. | Jon Dufresne | 2017-06-01 | 1 | -1/+1 |
| |