From a8846dc515ef060cbbe2252b1c602245810ee0f5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 18 May 2019 23:52:22 +1000 Subject: [PATCH] Hopefully fix the thingy --- InvenTree/stock/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 2e48ea167f..04e814707e 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -189,7 +189,7 @@ class StockItem(models.Model): part = models.ForeignKey('part.Part', on_delete=models.CASCADE, related_name='locations', help_text='Base part') - supplier_part = models.ForeignKey(SupplierPart, blank=True, null=True, on_delete=models.SET_NULL, + supplier_part = models.ForeignKey('company.SupplierPart', blank=True, null=True, on_delete=models.SET_NULL, help_text='Select a matching supplier part for this stock item') location = models.ForeignKey(StockLocation, on_delete=models.DO_NOTHING,