2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-21 06:16:29 +00:00

Migration fix (response is different for postgresql)

This commit is contained in:
Oliver Walters
2021-02-03 13:02:28 +11:00
parent 793e5b820e
commit 0e246a7fdf
3 changed files with 8 additions and 8 deletions

View File

@ -106,7 +106,7 @@ def reverse_currencies(apps, schema_editor):
# For each currency code in use, check if we have a matching Currency object
for code in codes_in_use:
response = cursor.execute(f"SELECT id, suffix from common_currency where suffix='{code}';")
row = response.fetchone()
row = cursor.fetchone()
if row is not None:
# A match exists!