#10919: Add an option to disable display of related items on admin's delete
confirmation page (to prevent large memory usage on complex objects)
-------------------------------------+-------------------------------------
Reporter: Tobias McNulty | Owner: Rodrigo
| Vieira
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
Severity: Normal | Resolution: fixed
Keywords: admin memory limit | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"fa2a3de6ede10b005fc2c1d23f4cffb53eaec425" fa2a3de6]:
{{{#!CommitTicketReference repository=""
revision="fa2a3de6ede10b005fc2c1d23f4cffb53eaec425"
Fixed #10919 -- Added delete_confirmation_max_display to ModelAdmin.
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/10919#comment:23>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019db825cffb-1c5143dc-13b5-4e45-9006-0e37b0aa9e28-000000%40eu-central-1.amazonses.com.