From 978ea7cc0b9e082ea50bd7c4a454e21d7c7c733b Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 4 Feb 2021 23:11:19 +1100 Subject: [PATCH] Typo fix --- InvenTree/company/migrations/0019_auto_20200413_0642.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/company/migrations/0019_auto_20200413_0642.py b/InvenTree/company/migrations/0019_auto_20200413_0642.py index af84b485b3..fe283f561b 100644 --- a/InvenTree/company/migrations/0019_auto_20200413_0642.py +++ b/InvenTree/company/migrations/0019_auto_20200413_0642.py @@ -182,7 +182,7 @@ def associate_manufacturers(apps, schema_editor): print(" - Part[{pk}]: Created new manufacturer: '{name}'".format(pk=part_id, name=company_name)) # Update SupplierPart object in the database - cursor.execute(f"update part_supplierpart set manufacturer_id={manufacturer_id} where id={part_id};") + cursor.execute(f"update part_supplierpart set manufacturer_id={manufacturer.pk} where id={part_id};") def find_matches(text, threshold=65): """