From 2303e03580d1b34976ac93c124d33d3aa32da238 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 3 Feb 2021 15:56:49 +1100 Subject: [PATCH] Bug fix: add missing line --- InvenTree/company/migrations/0019_auto_20200413_0642.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/company/migrations/0019_auto_20200413_0642.py b/InvenTree/company/migrations/0019_auto_20200413_0642.py index 433ffa54e7..ae854012d1 100644 --- a/InvenTree/company/migrations/0019_auto_20200413_0642.py +++ b/InvenTree/company/migrations/0019_auto_20200413_0642.py @@ -146,6 +146,8 @@ def associate_manufacturers(apps, schema_editor): if name in links.keys(): print(" - Part[{pk}]: Mapped '{n}' - manufacturer <{c}>".format(pk=part_id, n=name, c=links[name])) + manufacturer_id = links[name] + query = f"update part_supplierpart set manufacturer_id={manufacturer_id} where id={part_id};" result = query.execute() return True