mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Allow some more chars in part names
This commit is contained in:
parent
d98976679f
commit
df227a375c
@ -8,7 +8,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
def validate_part_name(value):
|
||||
# Prevent some illegal characters in part names
|
||||
for c in ['/', '\\', '|', '#', '$']:
|
||||
for c in ['|', '#', '$']:
|
||||
if c in str(value):
|
||||
raise ValidationError(
|
||||
_('Invalid character in part name')
|
||||
|
Loading…
Reference in New Issue
Block a user