Add similar check for IPN

This commit is contained in:
Oliver Walters 2022-04-22 01:00:38 +10:00
parent 292d28d378
commit 5fde9f552c

View File

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