#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 | Owner: nobody Type: New feature | Status: new Component: contrib.admin | Version: master Severity: Normal | Resolution: Keywords: admin memory limit | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------------+------------------------------------
Comment (by nijel): Adding such property to ModelAdmin sounds like a good idea. I've workarounded it myself by removing deleted_objects before rendering the template: {{{ def render_delete_form(self, request, context): context['deleted_objects'] = [_('Object listing disabled')] return super(ProjectAdmin, self).render_delete_form(request, context) }}} This way I will get the summary (so that user has idea what he is deleting), but not object list as it is too long to get displayed. -- Ticket URL: <https://code.djangoproject.com/ticket/10919#comment:7> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.205c8a6e6696a75e6e46f15fd89a329e%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.