This commit is contained in:
parent
0994ce9f0c
commit
16c70c3657
|
|
@ -29,7 +29,7 @@ def handle_protectederror(obj_list, request, e):
|
|||
|
||||
# Formulate the error message
|
||||
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')
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue