Fix ValidationError call for validate_tree_name function

This commit is contained in:
Oliver Walters 2019-09-13 11:15:11 +10:00
parent afdea818f7
commit 844f337d64

View File

@ -22,7 +22,7 @@ def validate_tree_name(value):
for c in "!@#$%^&*'\"\\/[]{}<>,|+=~`\"":
if c in str(value):
raise ValidationError({'name': _('Illegal character in name')})
raise ValidationError(_('Illegal character in name ({x})'.format(x=c)))
def validate_overage(value):