Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #22569 -- Made ModelAdmin.lookup_allowed() respect get_list_filter(). | sarahboyce | 2023-04-17 | 1 | -2/+9 |
| | | | | Thank you Simon Meers for the initial patch. | ||||
* | Fixed #28384 -- Fixed ModelAdmin.lookup_allowed() for OneToOneField primary ↵ | sarahboyce | 2023-03-28 | 1 | -4/+6 |
| | | | | keys and nested relations. | ||||
* | Fixed #32539 -- Added toggleable facet filters to ModelAdmin. | sarahboyce | 2023-03-03 | 1 | -0/+9 |
| | | | | | Thanks Carlton Gibson, Simon Willison, David Smith, and Mariusz Felisiak for reviews. | ||||
* | Fixed #34045 -- Improved accessibility of selecting items in admin changelist. | Durval Carvalho | 2023-02-16 | 1 | -3/+6 |
| | | | | This adds "aria-label". | ||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -1/+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 | ||||
* | Refs #34233 -- Used str.removeprefix()/removesuffix(). | Mariusz Felisiak | 2023-01-18 | 1 | -3/+3 |
| | |||||
* | Fixed typo in BaseModelAdmin.has_delete_permission()'s docstring. | Marco Marra | 2022-11-08 | 1 | -1/+1 |
| | |||||
* | Used more augmented assignment statements. | Nick Pope | 2022-10-31 | 1 | -1/+1 |
| | | | | | | Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]' | ||||
* | Fixed #32603 -- Made ModelAdmin.list_editable use transactions. | Shubh1815 | 2022-10-06 | 1 | -9/+11 |
| | |||||
* | Fixed #34023 -- Added inline argument to user_deleted_form(). | Michał Pasternak | 2022-09-24 | 1 | -2/+2 |
| | | | This binds the loop variable. | ||||
* | Changed camel case variable to snake case in contrib.admin/auth. | Youngkwang Yang | 2022-09-15 | 1 | -3/+3 |
| | |||||
* | Refs #32948, Refs #32946 -- Used Q.create() internally for dynamic Q() objects. | Nick Pope | 2022-07-27 | 1 | -4/+4 |
| | | | | | | | | | Node.create() which has a compatible signature with Node.__init__() takes in a single `children` argument rather than relying in unpacking *args in Q.__init__() which calls Node.__init__(). In addition, we were often needing to unpack iterables into *args and can instead pass a list direct to Node.create(). | ||||
* | Fixed typo in django/contrib/admin/options.py comment. | Ikko Ashimine | 2022-07-25 | 1 | -1/+1 |
| | |||||
* | Fixed #33805 -- Made admin's many-to-many widgets do not display help text ↵ | Ankur | 2022-06-28 | 1 | -2/+6 |
| | | | | for selecting values when allow_multiple_selected is False. | ||||
* | Fixed #33028 -- Used ModelAdmin's opts attribute instead of model._meta. | Marcelo Galigniana | 2022-06-22 | 1 | -54/+42 |
| | |||||
* | Fixed #33592 -- Fixed "View on Site" links in custom admin site. | Stefan Wehrmeyer | 2022-03-21 | 1 | -0/+1 |
| | |||||
* | Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ↵ | Hrushikesh Vaidya | 2022-02-28 | 1 | -1/+3 |
| | | | | ModelAdmin.radio_fields. | ||||
* | Fixed #33527 -- Removed unnecessary code in ModelAdmin._changeform_view(). | Dulalet | 2022-02-26 | 1 | -1/+1 |
| | | | Co-authored-by: Daulet1 <d.abduali@thefactory.kz> | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -7/+14 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -459/+720 |
| | |||||
* | Fixed #11715 -- Changed default value of ModelAdmin.actions/inlines to empty ↵ | Jacob Walls | 2022-01-11 | 1 | -2/+2 |
| | | | | | | | tuples. This clarifies the intended pattern of overwriting the default value rather than mutating it. | ||||
* | Fixed #33316 -- Added pagination to admin history view. | mgaligniana | 2021-12-15 | 1 | -1/+10 |
| | |||||
* | Fixed #16063 -- Adjusted admin changelist searches spanning multi-valued ↵ | Jacob Walls | 2021-12-15 | 1 | -1/+3 |
| | | | | | | | relationships. This reduces the likelihood of admin searches issuing queries with excessive joins. | ||||
* | Fixed #32996 -- Cached PathInfos on relations. | Keryn Knight | 2021-11-03 | 1 | -5/+5 |
| | | | | | | PathInfo values are ostensibly static over the lifetime of the object for which they're requested, so the data can be memoized, quickly amortising the cost over the process' duration. | ||||
* | Fixed #33111 -- Fixed passing object to ModelAdmin.get_inlines() when ↵ | Hasan Ramezani | 2021-09-21 | 1 | -1/+5 |
| | | | | | | | editing in admin change view. ModelAdmin.get_inlines() should get an unmutated object when creating formsets during POST request. | ||||
* | Fixed #32219 -- Made InlineModelAdmin.verbose_name_plural fallback to its ↵ | Siburg | 2021-09-08 | 1 | -2/+5 |
| | | | | verbose_name. | ||||
* | Refs #32946 -- Changed internal usage of dynamic Q() objects construction to ↵ | Keryn Knight | 2021-07-28 | 1 | -5/+6 |
| | | | | | | | | use non-kwargs initialization. This prefers non-kwargs construction of dynamically generated Q() objects to create a single Q() object instead of many and then combining them, where possible. | ||||
* | Refs #24121 -- Added __repr__() to AdminSite, DefaultAdminSite, and ModelAdmin. | Eduardo Aldair Ahumada Garcia Jurado | 2021-07-05 | 1 | -0/+6 |
| | | | | Thanks tlebrize for the initial patch. | ||||
* | Fixed #32543 -- Added search_help_text to ModelAdmin. | Hasan Ramezani | 2021-05-26 | 1 | -0/+2 |
| | |||||
* | Renamed "object" argument of ModelAdmin.log_addition(), log_change(), and ↵ | David Sanders | 2021-05-20 | 1 | -11/+11 |
| | | | | log_deletion() methods. | ||||
* | Refs #32682 -- Renamed lookup_needs_distinct() to lookup_spawns_duplicates(). | Mariusz Felisiak | 2021-04-29 | 1 | -2/+2 |
| | | | Follow up to 187118203197801c6cb72dc8b06b714b23b6dd3d. | ||||
* | Refs #32682 -- Renamed use_distinct variable to may_have_duplicates. | Mariusz Felisiak | 2021-04-27 | 1 | -4/+6 |
| | | | | | QuerySet.distinct() is not the only way to avoid duplicate, it's also not preferred. | ||||
* | Fixed #32681 -- Fixed VariableDoesNotExist when rendering some admin template. | Zain Patel | 2021-04-26 | 1 | -0/+2 |
| | | | | Regression in 84609b3205905097d7d3038d32e6101f012c0619. | ||||
* | Fixed #32649 -- Fixed ModelAdmin.search_fields crash when searching against ↵ | Mariusz Felisiak | 2021-04-14 | 1 | -1/+1 |
| | | | | | | | phrases with unbalanced quotes. Thanks Dlis for the report. Regression in 26a413507abb38f7eee4cf62f2ee9727fdc7bf8d. | ||||
* | Fixed #26607 -- Allowed customizing formset kwargs with ↵ | manav014 | 2021-02-15 | 1 | -11/+15 |
| | | | | | | ModelAdmin.get_formset_kwargs(). Thanks Nick Pope for reviews. | ||||
* | Fixed #16117 -- Added decorators for admin action and display functions. | Nick Pope | 2021-01-13 | 1 | -1/+2 |
| | | | Refs #25134, #32099. | ||||
* | Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵ | Johannes Maron | 2021-01-12 | 1 | -7/+2 |
| | | | | | | | autocomplete fields. * Fixed #29010 -- Added limit_choices_to support to autocomplete fields. * Fixed #29138 -- Allowed autocomplete fields to target a custom to_field rather than the PK. | ||||
* | Unified admin action description generation. | Nick Pope | 2020-11-13 | 1 | -5/+6 |
| | | | | | | Actions added to AdminSite.actions would not have the first character of their description capitalized. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | ||||
* | Removed unnecessary check in BaseModelAdmin.get_view_on_site_url(). | Marco Richetta | 2020-10-13 | 1 | -1/+1 |
| | |||||
* | Fixed #31993 -- Added subtitles to admin change/view pages. | Jon Dufresne | 2020-09-11 | 1 | -0/+2 |
| | |||||
* | Bumped minimum isort version to 5.1.0. | David Smith | 2020-07-30 | 1 | -3/+4 |
| | | | | | Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable. | ||||
* | Fixed #6933 -- Added support for searching against quoted phrases in ↵ | Alix | 2020-06-18 | 1 | -2/+6 |
| | | | | ModelAdmin.search_fields. | ||||
* | Fixed #31524 -- Removed minified static assets from the admin. | Jon Dufresne | 2020-05-14 | 1 | -5/+4 |
| | |||||
* | Fixed E128, E741 flake8 warnings. | Mariusz Felisiak | 2020-05-12 | 1 | -1/+1 |
| | |||||
* | Fixed #30311 -- Restored ability to override global admin actions. | hashlash | 2020-04-17 | 1 | -3/+8 |
| | |||||
* | Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵ | 007 | 2020-04-15 | 1 | -11/+19 |
| | | | | for ManyToManyFields with formfield_overrides. | ||||
* | Simplified imports from django.db and django.contrib.gis.db. | Nick Pope | 2020-02-04 | 1 | -2/+1 |
| | |||||
* | Optimized ModelAdmin._changeform_view() by avoiding multiple get_fieldsets() ↵ | Daniel Hahler | 2020-01-17 | 1 | -3/+6 |
| | | | | | calls. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com> | ||||
* | Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵ | Carlton Gibson | 2019-12-02 | 1 | -5/+16 |
| | | | | | | editable inlines in admin. Thank you to Shen Ying for reporting this issue. | ||||
* | Fixed #31031 -- Fixed data loss in admin changelist view when formset's ↵ | Baptiste Mispelon | 2019-11-26 | 1 | -1/+3 |
| | | | | | | prefix contains regex special chars. Regression in b18650a2634890aa758abae2f33875daa13a9ba3. |