2
0
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:
Oliver
2022-10-28 15:56:16 +11:00
committed by GitHub
parent 1c17977f4d
commit 61c6054049
3 changed files with 19 additions and 9 deletions

View File

@ -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)