From 8cb4eeeafea867d6434c216a0b900711e634de46 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 16 Jul 2005 21:21:02 +0000 Subject: [PATCH] Changed delete_stage admin view to run strip_tags on repr() of object to be deleted git-svn-id: http://code.djangoproject.com/svn/django/trunk@116 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/admin/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/views/admin/main.py b/django/views/admin/main.py index 39ed83f902..34c8d1cd83 100644 --- a/django/views/admin/main.py +++ b/django/views/admin/main.py @@ -1049,7 +1049,7 @@ def delete_stage(request, app_label, module_name, object_id): # Populate deleted_objects, a data structure of all related objects that # will also be deleted. - deleted_objects = ['%s: %r' % (meta.capfirst(opts.verbose_name), object_id, obj), []] + deleted_objects = ['%s: %s' % (meta.capfirst(opts.verbose_name), object_id, strip_tags(repr(obj))), []] perms_needed = sets.Set() _get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1)