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:
@ -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!
|
||||
|
Reference in New Issue
Block a user