This commit is contained in:
Oliver Walters 2019-05-10 22:52:45 +10:00
parent 8ac180a9e3
commit 7f1cdaf73f
2 changed files with 2 additions and 2 deletions

View File

@ -12,4 +12,4 @@ def validate_part_name(value):
if c in str(value):
raise ValidationError(
_('Invalid character in part name')
)
)

View File

@ -177,7 +177,7 @@ class Part(models.Model):
validators=[validators.validate_part_name]
)
variant = models.CharField(max_length=32, blank=True, help_text='Part variant or revision code')
variant = models.CharField(max_length=32, blank=True, help_text='Part variant or revision code')
description = models.CharField(max_length=250, blank=False, help_text='Part description')