From af00d885558ffbf8767e65c49b9b3a4758dcdd74 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 1 May 2020 15:57:10 +1000 Subject: [PATCH] Bug fix for custom migration Ref: https://stackoverflow.com/questions/13410982/attributeerror-long-object-has-no-attribute-fetchall#13411358 --- InvenTree/company/migrations/0019_auto_20200413_0642.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/company/migrations/0019_auto_20200413_0642.py b/InvenTree/company/migrations/0019_auto_20200413_0642.py index f683ee783a..c81dfd795a 100644 --- a/InvenTree/company/migrations/0019_auto_20200413_0642.py +++ b/InvenTree/company/migrations/0019_auto_20200413_0642.py @@ -95,7 +95,7 @@ def associate_manufacturers(apps, schema_editor): cursor = connection.cursor() response = cursor.execute(query) - row = response.fetchone() + row = cursor.fetchone() if len(row) > 0: return row[0]