mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
change formating of strings because i don't like %
This commit is contained in:
parent
f6b48905bf
commit
cf5a481d6a
1 changed files with 2 additions and 2 deletions
|
@ -384,8 +384,8 @@ def messages_protected_error(messages, request, item, error):
|
||||||
"""Add an error message, specific to ProtectedError exception."""
|
"""Add an error message, specific to ProtectedError exception."""
|
||||||
messages.error(
|
messages.error(
|
||||||
request,
|
request,
|
||||||
_("[%(item_class_name)s] %(item_name)s can't be deleted \
|
_("[{item_class_name}] {item_name} can't be deleted \
|
||||||
because it is used by [%(foreign_class_name)s] %(foreign_name)s.", % {
|
because it is used by [{foreign_class_name}] {foreign_name}."format({
|
||||||
'item_class_name': item.__class__.__name__,
|
'item_class_name': item.__class__.__name__,
|
||||||
'item_name': item.name,
|
'item_name': item.name,
|
||||||
'foreign_class_name': error.protected_objects[0].__class__.__name__,
|
'foreign_class_name': error.protected_objects[0].__class__.__name__,
|
||||||
|
|
Loading…
Reference in a new issue