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): """