mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fxi
This commit is contained in:
parent
386cb2dd3a
commit
0e11b722be
@ -144,7 +144,7 @@ def associate_manufacturers(apps, schema_editor):
|
|||||||
|
|
||||||
# Have we already mapped this
|
# Have we already mapped this
|
||||||
if name in links.keys():
|
if name in links.keys():
|
||||||
print(" - Part[{pk}]: Mapped '{n}' - '{c}'".format(pk=part_id, n=name, c=links[name].name))
|
print(" - Part[{pk}]: Mapped '{n}' - manufacturer <{c}>".format(pk=part_id, n=name, c=links[name]))
|
||||||
|
|
||||||
query = f"update part_supplierpart set manufacturer_id={manufacturer_id} where id={part_id};"
|
query = f"update part_supplierpart set manufacturer_id={manufacturer_id} where id={part_id};"
|
||||||
result = query.execute()
|
result = query.execute()
|
||||||
|
Loading…
Reference in New Issue
Block a user