|
@@ -29,7 +29,7 @@ def handle_protectederror(obj_list, request, e):
|
|
|
|
|
|
|
|
# Formulate the error message
|
|
# Formulate the error message
|
|
|
err_message = _("Unable to delete <strong>{objects}</strong>. {count} dependent objects were found: ").format(
|
|
err_message = _("Unable to delete <strong>{objects}</strong>. {count} dependent objects were found: ").format(
|
|
|
- objects=', '.join(str(obj) for obj in obj_list),
|
|
|
|
|
|
|
+ objects=', '.join(escape(obj) for obj in obj_list),
|
|
|
count=len(protected_objects) if len(protected_objects) <= 50 else _('More than 50')
|
|
count=len(protected_objects) if len(protected_objects) <= 50 else _('More than 50')
|
|
|
)
|
|
)
|
|
|
|
|
|