mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +00:00
Fix ValidationError call for validate_tree_name function
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user