Unicode developer_message to handle Spanish failures
This commit is contained in:
committed by
Feanil Patel
parent
428c061b07
commit
44f10be03c
@@ -173,10 +173,10 @@ class IncorrectPartitionGroupError(AccessError):
|
||||
"""
|
||||
def __init__(self, partition, user_group, allowed_groups, user_message=None, user_fragment=None):
|
||||
error_code = "incorrect_user_group"
|
||||
developer_message = "In partition {}, user was in group {}, but only {} are allowed access".format(
|
||||
developer_message = u"In partition {}, user was in group {}, but only {} are allowed access".format(
|
||||
partition.name,
|
||||
user_group.name if user_group is not None else user_group,
|
||||
", ".join(group.name for group in allowed_groups),
|
||||
u", ".join(group.name for group in allowed_groups),
|
||||
)
|
||||
super(IncorrectPartitionGroupError, self).__init__(
|
||||
error_code=error_code,
|
||||
|
||||
Reference in New Issue
Block a user