diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index bcb9c99749..900e0e5a98 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -712,7 +712,8 @@ class Part(MPTTModel): delete_orphans=True, ) - default_location = TreeForeignKey('stock.StockLocation', + default_location = TreeForeignKey( + 'stock.StockLocation', on_delete=models.SET_NULL, blank=True, null=True, help_text=_('Where is this item normally stored?'),