mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Part name validation fix (#3870)
* Check that part name format is actually valid * Expand exception handling when generating part "full_name" * Do not enforce client-side sanitization of form data - Form data sanitization is now handled server side
This commit is contained in:
@ -671,7 +671,7 @@ class Part(InvenTreeBarcodeMixin, MetadataMixin, MPTTModel):
|
||||
|
||||
return full_name
|
||||
|
||||
except AttributeError as attr_err:
|
||||
except Exception as attr_err:
|
||||
|
||||
logger.warning(f"exception while trying to create full name for part {self.name}", attr_err)
|
||||
|
||||
|
Reference in New Issue
Block a user