mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP
This commit is contained in:
parent
8ac180a9e3
commit
7f1cdaf73f
@ -12,4 +12,4 @@ def validate_part_name(value):
|
|||||||
if c in str(value):
|
if c in str(value):
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
_('Invalid character in part name')
|
_('Invalid character in part name')
|
||||||
)
|
)
|
||||||
|
@ -177,7 +177,7 @@ class Part(models.Model):
|
|||||||
validators=[validators.validate_part_name]
|
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')
|
description = models.CharField(max_length=250, blank=False, help_text='Part description')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user