summaryrefslogtreecommitdiff
path: root/tests/admin_changelist/admin.py
AgeCommit message (Collapse)Author
2025-01-10Fixed #36032 -- Rendered URLField values as links in the admin.antoliny0919
2025-01-08Fixed #36063 -- Made a FileField navigate to the object admin change page ↵antoliny0919
when in list_display_links.
2024-11-05Refs #26001 -- Handled relationship exact lookups in ModelAdmin.search_fields.Sarah Boyce
2024-11-04Fixed #26001 -- Fixed non-string field exact lookups in ↵0saurabh0
ModelAdmin.search_fields.
2024-02-05Refs #10743 -- Enabled ordering for lookups in ModelAdmin.list_display.Tom Carrick
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Co-authored-by: Nina Menezes <https://github.com/nmenezes0>
2024-02-05Fixed #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>
2023-01-30Fixed #34283 -- Escaped title in admin's changelist filters.Stanislav Volyk
Regression in 27aa7035f57f0db30b6632e4274e18b430906799.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-15Fixed #16063 -- Adjusted admin changelist searches spanning multi-valued ↵Jacob Walls
relationships. This reduces the likelihood of admin searches issuing queries with excessive joins.
2021-09-21Fixed #33083 -- Fixed selecting all items in the admin changelist when ↵Carlton Gibson
actions are both top and bottom. Thanks Benjamin Locher for the report. Regression in 30e59705fc3e3e9e8370b965af794ad6173bf92b.
2021-04-27Refs #19080 -- Added tests for preserving select_related() in the admin ↵Mariusz Felisiak
changelist.
2021-01-13Fixed #16117 -- Added decorators for admin action and display functions.Nick Pope
Refs #25134, #32099.
2020-05-20Fixed #31597, #31603 -- Corrected admin clear all filters link behavior.Fran Hrzenjak
- Show "Clear all filters" only when any filter is selected. - Preserve query string not related with filters. Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2020-04-29Added tests for saving with pending actions in admin changelist.Jon Dufresne
2018-02-14Fixed #28933 -- Improved the efficiency of ModelAdmin.date_hierarchy queries.Haki Benita
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-01Fixed #11313 -- Made ModelAdmin.list_editable more resilient to concurrent ↵bphillips
edits. Allowed admin POSTed bulk-edit data to use modeladmin.get_queryset() so that the ids in the POST data have a chance to match up even if the objects on the current page changed based on the ordering.
2015-12-29Fixed #19536 -- Included object-tools when ModelAdmin.has_add_permission() ↵Nick Sandford
is False.
2015-10-10Fixed #24687 -- Added select_related() validation for nested non-relational ↵Tim Graham
fields. The removed test was added in the original select_related() validation patch (45d4e43d2d25b902e3821b612209afa951a8bcb8), but there doesn't seem to be any reason for it. Thanks Claude Paroz for help and review.
2015-06-04Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent
2015-05-28Fixed #24851 -- Fixed crash with reverse one-to-one relation in ↵Tim Graham
ModelAdmin.list_display Forwardport of 2456276b0250c9f21d580ca6c3f3c86345ad6370 from stable/1.8.x
2015-05-06Fixed #16609 -- Fixed duplicate admin results when searching nested M2M ↵Samuel Paccoud
relations. This was fixed earlier but only when the M2M relation was at the first level on the object. This commit fixes the issue even when the M2M is at deeper levels, such as behind a foreign key.
2015-04-08Revert "Fixed #24474 -- Allowed configuring the admin's empty change list ↵Tim Graham
value." This reverts commit 72f769f494822981db6df9524b92a2d86f8e69fe. There are several test failures that need to be fixed.
2015-04-08Fixed #24474 -- Allowed configuring the admin's empty change list value.Loek van Gent
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-02-22Added tests and minified javascript missing in ↵Bas Peschier
83a3add4bed8d8d49f93b30c817c66908b0a26ba. Refs #22038.
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-01Fixed #15185 -- Allowed ModelAdmin.list_display_links=None to disable change ↵Ramiro Morales
list links. Thanks rm_ for the suggestion.
2013-08-03Added ModelAdmin.get_search_fields.Loic Bistuer
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-06-05Fixed #19080 -- Fine-grained control over select_related in adminTomek Paczkowski
2013-03-08Fixed #15363 -- Renamed and normalized to `get_queryset` the methods that ↵Loic Bistuer
return a QuerySet.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner