mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add similar check for IPN
This commit is contained in:
parent
292d28d378
commit
5fde9f552c
@ -800,7 +800,7 @@ class Part(MPTTModel):
|
|||||||
super().clean()
|
super().clean()
|
||||||
|
|
||||||
# Strip IPN field
|
# Strip IPN field
|
||||||
if self.IPN:
|
if type(self.IPN) is str:
|
||||||
self.IPN = self.IPN.strip()
|
self.IPN = self.IPN.strip()
|
||||||
|
|
||||||
if self.trackable:
|
if self.trackable:
|
||||||
|
Loading…
Reference in New Issue
Block a user