summaryrefslogtreecommitdiff
path: root/tests/admin_views/urls.py
AgeCommit message (Collapse)Author
2026-04-22Fixed #10919 -- Added delete_confirmation_max_display to ModelAdmin.Rodrigo Vieira
The new ModelAdmin.delete_confirmation_max_display attribute allows limiting the number of related objects shown on the delete confirmation page. When the limit is reached, a "…and N more objects." message is shown. The feature relies on a new truncated_unordered_list template filter added to django.contrib.admin.templatetags.admin_filters. Thanks Jacob Tyler Walls for the review and guidance, Tobias McNulty for the report, and terminator14 for the solution suggested.
2026-01-22Fixed #13883 -- Rendered named choice groups with <optgroup> in ↵seanhelvey
FilteredSelectMultiple. This patch adds support for <optgroup>s in FilteredSelectMultiple widgets. When a popup returns a new object, if the source field contains optgroup choices, the optgroup is now also included in the response data. Additionally, this adds error handling for invalid source_model parameters to prevent crashes and display user-friendly error messages instead. Co-authored-by: Michael McLarnon <mmclar@gmail.com>
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-01-12Fixed #31747 -- Fixed model enumeration via admin URLs.Jon Dufresne
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2019-12-02Fixed CVE-2019-19118 -- Required edit permissions on parent model for ↵Carlton Gibson
editable inlines in admin. Thank you to Shen Ying for reporting this issue.
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-08-17Fixed #29663 -- Made admin change view redirect to changelist with view ↵Jon Dufresne
permission.
2018-06-15Fixed #29487 -- Accounted for object level permissions when calculating ↵Paulo
change view's read-only fields. Thanks Matthew Frazier for the report and fix.
2018-02-07Fixed #25790 -- Allowed disable column sorting in the admin changelist.Alexander Gaevsky
Thanks Ramiro Morales for completing the patch.
2017-12-01Used a separate admin site for autocomplete tests.Tim Graham
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2016-06-27Fixed #26779 -- Added extra_context parameter to admin's i18n_javascript view.Shabda Raaj
2015-06-08Fixed #21927 -- Made application and instance namespaces more distinct.Marten Kenbeek
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
2015-03-02Fixed #24294 -- Allowed staff_member_required decorator to handle args.Andrei Kulakov
2015-02-08Replaced hardcoded URLs in admin_* testsClaude Paroz
Refs #15779. This will allow easier admin URL changes, when needed. Thanks Simon Charette for the review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-31Fixed #22295 -- Replaced permission check for displaying admin user-toolsThomas Tanner
2014-06-13Fixed #6327 -- Added has_module_permission method to BaseModelAdminMaxime Turcotte
Thanks chrj for the suggestion.
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
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-07-18Fixed #20767 -- Fixed ModelAdmin.preserve_filters for namespaced URLs.Loic Bistuer
Thanks Collin Anderson for the report.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner