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)