From 5fde9f552c8792b3889401f51eff545e6466e129 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 22 Apr 2022 01:00:38 +1000 Subject: [PATCH] Add similar check for IPN --- InvenTree/part/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 7973e408ce..1cb83b839a 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -800,7 +800,7 @@ class Part(MPTTModel): super().clean() # Strip IPN field - if self.IPN: + if type(self.IPN) is str: self.IPN = self.IPN.strip() if self.trackable: