mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-11 04:36:46 +00:00
PEP
This commit is contained in:
1 parent
8ac180a9e3
commit
7f1cdaf73f
2 files changed
+2
-2
No files matched your search
@@ -12,4 +12,4 @@ def validate_part_name(value):
|
||||
if c in str(value):
|
||||
raise ValidationError(
|
||||
_('Invalid character in part name')
|
||||
)
|
||||
)
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user