Merge pull request #769 from SchrodingersGat/migration-ixes

Bug fix for custom migration
This commit is contained in:
Oliver 2020-05-01 16:23:53 +10:00 committed by GitHub
commit 68bbb372dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]