mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Bug fix for custom migration
Ref: https://stackoverflow.com/questions/13410982/attributeerror-long-object-has-no-attribute-fetchall#13411358
This commit is contained in:
1 parent
86c00f54b7
commit
af00d88555
1 file changed
+1
-1
@@ -95,7 +95,7 @@ def associate_manufacturers(apps, schema_editor):
|
|||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
response = cursor.execute(query)
|
response = cursor.execute(query)
|
||||||
row = response.fetchone()
|
row = cursor.fetchone()
|
||||||
|
|
||||||
if len(row) > 0:
|
if len(row) > 0:
|
||||||
return row[0]
|
return row[0]
|
||||||
|
|||||||
Reference in new issue
Block a user