8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 19:33:11 +00:00

change formating of strings because i don't like %

This commit is contained in:
Kagamino 2018-05-29 22:19:55 +02:00
parent f6b48905bf
commit cf5a481d6a
No known key found for this signature in database
GPG key ID: 627AC4A983DA11E3

View file

@ -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__,