Remove quotes around column names

This commit is contained in:
Oliver Walters 2021-02-03 15:15:49 +11:00
parent 79ddea50f5
commit 386cb2dd3a

View File

@ -158,7 +158,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}', false, false, true, '', '', '', '', '', '', '');"
cursor = connection.cursor()