summaryrefslogtreecommitdiff
path: root/django/contrib/admin/options.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #22569 -- Made ModelAdmin.lookup_allowed() respect get_list_filter().sarahboyce2023-04-171-2/+9
| | | | Thank you Simon Meers for the initial patch.
* Fixed #28384 -- Fixed ModelAdmin.lookup_allowed() for OneToOneField primary ↵sarahboyce2023-03-281-4/+6
| | | | keys and nested relations.
* Fixed #32539 -- Added toggleable facet filters to ModelAdmin.sarahboyce2023-03-031-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 Carvalho2023-02-161-3/+6
| | | | This adds "aria-label".
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-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 Felisiak2023-01-181-3/+3
|
* Fixed typo in BaseModelAdmin.has_delete_permission()'s docstring.Marco Marra2022-11-081-1/+1
|
* Used more augmented assignment statements.Nick Pope2022-10-311-1/+1
| | | | | | Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
* Fixed #32603 -- Made ModelAdmin.list_editable use transactions.Shubh18152022-10-061-9/+11
|
* Fixed #34023 -- Added inline argument to user_deleted_form().Michał Pasternak2022-09-241-2/+2
| | | This binds the loop variable.
* Changed camel case variable to snake case in contrib.admin/auth.Youngkwang Yang2022-09-151-3/+3
|
* Refs #32948, Refs #32946 -- Used Q.create() internally for dynamic Q() objects.Nick Pope2022-07-271-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 Ashimine2022-07-251-1/+1
|
* Fixed #33805 -- Made admin's many-to-many widgets do not display help text ↵Ankur2022-06-281-2/+6
| | | | for selecting values when allow_multiple_selected is False.
* Fixed #33028 -- Used ModelAdmin's opts attribute instead of model._meta.Marcelo Galigniana2022-06-221-54/+42
|
* Fixed #33592 -- Fixed "View on Site" links in custom admin site.Stefan Wehrmeyer2022-03-211-0/+1
|
* Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ↵Hrushikesh Vaidya2022-02-281-1/+3
| | | | ModelAdmin.radio_fields.
* Fixed #33527 -- Removed unnecessary code in ModelAdmin._changeform_view().Dulalet2022-02-261-1/+1
| | | Co-authored-by: Daulet1 <d.abduali@thefactory.kz>
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-7/+14
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-459/+720
|
* Fixed #11715 -- Changed default value of ModelAdmin.actions/inlines to empty ↵Jacob Walls2022-01-111-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.mgaligniana2021-12-151-1/+10
|
* Fixed #16063 -- Adjusted admin changelist searches spanning multi-valued ↵Jacob Walls2021-12-151-1/+3
| | | | | | | relationships. This reduces the likelihood of admin searches issuing queries with excessive joins.
* Fixed #32996 -- Cached PathInfos on relations.Keryn Knight2021-11-031-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 Ramezani2021-09-211-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 ↵Siburg2021-09-081-2/+5
| | | | verbose_name.
* Refs #32946 -- Changed internal usage of dynamic Q() objects construction to ↵Keryn Knight2021-07-281-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 Jurado2021-07-051-0/+6
| | | | Thanks tlebrize for the initial patch.
* Fixed #32543 -- Added search_help_text to ModelAdmin.Hasan Ramezani2021-05-261-0/+2
|
* Renamed "object" argument of ModelAdmin.log_addition(), log_change(), and ↵David Sanders2021-05-201-11/+11
| | | | log_deletion() methods.
* Refs #32682 -- Renamed lookup_needs_distinct() to lookup_spawns_duplicates().Mariusz Felisiak2021-04-291-2/+2
| | | Follow up to 187118203197801c6cb72dc8b06b714b23b6dd3d.
* Refs #32682 -- Renamed use_distinct variable to may_have_duplicates.Mariusz Felisiak2021-04-271-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 Patel2021-04-261-0/+2
| | | | Regression in 84609b3205905097d7d3038d32e6101f012c0619.
* Fixed #32649 -- Fixed ModelAdmin.search_fields crash when searching against ↵Mariusz Felisiak2021-04-141-1/+1
| | | | | | | phrases with unbalanced quotes. Thanks Dlis for the report. Regression in 26a413507abb38f7eee4cf62f2ee9727fdc7bf8d.
* Fixed #26607 -- Allowed customizing formset kwargs with ↵manav0142021-02-151-11/+15
| | | | | | ModelAdmin.get_formset_kwargs(). Thanks Nick Pope for reviews.
* Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope2021-01-131-1/+2
| | | Refs #25134, #32099.
* Fixed #29010, Fixed #29138 -- Added limit_choices_to and to_field support to ↵Johannes Maron2021-01-121-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 Pope2020-11-131-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 Richetta2020-10-131-1/+1
|
* Fixed #31993 -- Added subtitles to admin change/view pages.Jon Dufresne2020-09-111-0/+2
|
* Bumped minimum isort version to 5.1.0.David Smith2020-07-301-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 ↵Alix2020-06-181-2/+6
| | | | ModelAdmin.search_fields.
* Fixed #31524 -- Removed minified static assets from the admin.Jon Dufresne2020-05-141-5/+4
|
* Fixed E128, E741 flake8 warnings.Mariusz Felisiak2020-05-121-1/+1
|
* Fixed #30311 -- Restored ability to override global admin actions.hashlash2020-04-171-3/+8
|
* Fixed #31462 -- Allowed overriding autocomplete/raw_id_fields/filter widgets ↵0072020-04-151-11/+19
| | | | for ManyToManyFields with formfield_overrides.
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-2/+1
|
* Optimized ModelAdmin._changeform_view() by avoiding multiple get_fieldsets() ↵Daniel Hahler2020-01-171-3/+6
| | | | | calls. Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
* Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵Carlton Gibson2019-12-021-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 Mispelon2019-11-261-1/+3
| | | | | | prefix contains regex special chars. Regression in b18650a2634890aa758abae2f33875daa13a9ba3.