mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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 "!@#$%^&*'\"\\/[]{}<>,|+=~`\"":
|
for c in "!@#$%^&*'\"\\/[]{}<>,|+=~`\"":
|
||||||
if c in str(value):
|
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):
|
def validate_overage(value):
|
||||||
|
Loading…
Reference in New Issue
Block a user