Bug fix: add missing line

(cherry picked from commit 2303e03580)
This commit is contained in:
Oliver Walters 2021-02-03 15:56:49 +11:00
parent ad0b59bf11
commit 93f0dbd4ee

View File

@ -153,6 +153,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