From 77fe0dc542e18d78b9325ae0a84589f782f21f3b Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 12 Apr 2018 19:14:07 +1000 Subject: [PATCH] Remove requirement for unique IPN - Blank IPN values did not count as 'unique' --- InvenTree/part/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 6c2df81e3e..3ca4ebab0c 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -60,8 +60,7 @@ class Part(models.Model): class Meta: verbose_name = "Part" verbose_name_plural = "Parts" - unique_together = (("name", "category"), - ("IPN", "category")) + unique_together = (("name", "category"),) @property def stock(self):