mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
Fix ValidationError call for validate_tree_name function
This commit is contained in:
parent
afdea818f7
commit
844f337d64
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user