mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Use integer field instead of boolean literal (not correct SQL)
This commit is contained in:
parent
b107c54eb2
commit
140c8b5395
@ -167,7 +167,7 @@ def associate_manufacturers(apps, schema_editor):
|
||||
|
||||
# Manually create a new database row
|
||||
# Note: Have to fill out all empty string values!
|
||||
new_manufacturer_query = f"insert into company_company (name, description, is_customer, is_supplier, is_manufacturer, address, website, phone, email, contact, link, notes) values ('{company_name}', '{company_name}', false, false, true, '', '', '', '', '', '', '');"
|
||||
new_manufacturer_query = f"insert into company_company (name, description, is_customer, is_supplier, is_manufacturer, address, website, phone, email, contact, link, notes) values ('{company_name}', '{company_name}', 0, 0, 1, '', '', '', '', '', '', '');"
|
||||
|
||||
cursor = connection.cursor()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user