mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 02:41:21 +00:00
Remove requirement for unique IPN
- Blank IPN values did not count as 'unique'
This commit is contained in:
1 parent
3fcd5f08e6
commit
77fe0dc542
1 file changed
+1
-2
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user