summaryrefslogtreecommitdiff
path: root/django/contrib/admin/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #1873 -- Handled multi-valued query parameters in admin changelist ↵sarahboyce2023-03-161-1/+10
| | | | filters.
* Refs #1873 -- Used GET.lists() in admin filters.sarahboyce2023-03-161-0/+7
|
* Fixed #33927 -- Fixed crash when displaying ArrayField with choices in admin.David Wobrock2022-08-231-1/+9
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-62/+88
|
* Fixed #13251 -- Made pre/post_delete signals dispatch the origin.mgaligniana2022-01-111-1/+1
|
* Fixed #19721 -- Allowed admin filters to customize the list separator.Shreya Bamne2021-12-081-2/+2
|
* Fixed #32996 -- Cached PathInfos on relations.Keryn Knight2021-11-031-4/+4
| | | | | | 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 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith2021-07-291-1/+1
| | | | appropriate.
* Refs #32682 -- Renamed lookup_needs_distinct() to lookup_spawns_duplicates().Mariusz Felisiak2021-04-291-3/+4
| | | Follow up to 187118203197801c6cb72dc8b06b714b23b6dd3d.
* Fixed #32080 -- Fixed displaying Unicode chars in forms.JSONField and ↵Qi Zhao2020-10-091-1/+2
| | | | read-only JSONField values in admin.
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-1/+1
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Fixed #31157 -- Fixed displaying read-only JSONField values in admin.dbxnr2020-05-081-0/+5
|
* Removed unnecessary tuple wrapping of single format string argument.François Freitag2020-04-271-1/+1
|
* Fixed #27272 -- Added an on_delete RESTRICT handler to allow cascading ↵Daniel Izquierdo2019-11-191-0/+2
| | | | deletions while protecting direct ones.
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-2/+2
|
* Fixed #30856 -- Combined fast-delete queries by model during cascade deletion.Simon Charette2019-10-091-3/+3
| | | | | | Reduced the number of queries required when performing cascade deletion for a model referenced multiple time by another one by performing an union of reference lookups.
* Fixed #12952 -- Adjusted admin log change messages to use form labels ↵Sanyam Khurana2019-06-141-3/+23
| | | | instead of field names.
* Simplified contrib.admin.utils.unquote().Sergey Fedoseev2018-10-021-16/+5
|
* Simplified contrib.admin.utils.quote().Sergey Fedoseev2018-10-011-8/+3
|
* Fixed #29682 -- Fixed admin change form crash if a view-only model's form ↵Tim Graham2018-08-201-1/+5
| | | | has an extra field.
* Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use ↵Henk Kahlfuß2018-06-151-7/+5
| | | | has_delete_permission() for permissions checking.
* Refs #29227 -- Simplified NullBooleanField by making it subclass BooleanField.Nick Pope2018-03-201-1/+1
|
* Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham2018-03-201-2/+2
| | | | Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
* Removed using argument from admin's get_deleted_objects().Tim Graham2018-02-241-2/+8
|
* Removed unused opts argument from admin's get_deleted_objects().Tim Graham2018-02-211-1/+1
| | | | Unused since e12b3199d0c01694ca6b09add5e0f27cadffc8ad.
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-5/+2
| | | | continue statements.
* Fixed #28517 -- Fixed admin delete confirmation view crash when related ↵Paulo2018-01-041-4/+4
| | | | models don't have a delete permission.
* Fixed #28986 -- Prevented boolean values in admin list display from being ↵Jonas Haag2018-01-031-0/+2
| | | | formatted with thousand separators.
* Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов2018-01-031-2/+2
|
* Fixed #26184 -- Allowed using any lookups in ModelAdmin.search_fields.Krzysztof Nazarewski2017-11-181-13/+14
| | | | Thanks Krzysztof Nazarewski for the initial patch.
* Refs #23919 -- Updated references to urllib.quote() to Python 3 location.Ville Skyttä2017-10-311-5/+3
|
* Merged isinstance() calls.Mariusz Felisiak2017-09-131-1/+1
|
* Replaced Model._get_pk_val() with pk property.Tim Graham2017-06-051-1/+1
| | | Model.pk was added after _get_pk_val() and many places weren't simplified.
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-10/+9
| | | | Thanks Tim Graham for the review.
* Fixed #27897 -- Fixed crash with 'pk' in ModelAdmin.search_filters.Josh Schneier2017-03-151-0/+2
|
* Refs #27795 -- Removed unneeded force_text callsClaude Paroz2017-03-041-6/+5
| | | | Thanks Tim Graham for the review.
* Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz2017-02-071-4/+2
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.contrib docstring verb style according to PEP 257.Anton Samarchyan2017-02-041-11/+12
|
* Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis2017-01-261-4/+1
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-3/+3
|
* Refs #23919 -- Removed unneeded force_str callsClaude Paroz2017-01-201-5/+2
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-4/+4
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Replaced '__' with LOOKUP_SEP constant.Nick Pope2016-10-111-1/+1
|
* Removed unused contrib.admin.utils.remove_trailing_data_field().Tim Graham2016-10-101-9/+0
| | | | Unused since 8f30556329b64005d63b66859a74752a0b261315.
* Fixed #27273 -- Added a construct_change_message() admin utility function.Tim Graham2016-10-051-1/+43
|
* Fixed #26524 -- Fixed crash in admin change view when displaying many to ↵Jon Dufresne2016-09-121-1/+1
| | | | | | many forward refs. Thanks Tim Graham for the regression test.
* Replaced smart_* by force_* calls whenever possibleClaude Paroz2016-09-031-1/+1
| | | | | The smart_* version should only be used when a lazy string should keep its lazy status.
* Fixing #26524 -- Made a foreign key id reference in ModelAdmin.list_display ↵krishbharadwaj2016-06-081-2/+16
| | | | display the id.
* Fixed #26582 -- Added prettier admin display for list values.Dan Watson2016-05-071-1/+3
|