mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-13 10:35:40 +00:00
Allow some more chars in part names
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user