fix copy&paste error

This commit is contained in:
2021-05-11 18:14:43 +02:00
parent 68efd595b7
commit 3df3287bfa
@@ -4,7 +4,7 @@ from django.db import migrations
def separate_fees(apps, schema_editor): def separate_fees(apps, schema_editor):
Person = apps.get_model('transactions', 'Transaction') Transaction = apps.get_model('transactions', 'Transaction')
for tr in Transaction.objects.all(): for tr in Transaction.objects.all():
if tr.amount_before_fee > 0: if tr.amount_before_fee > 0:
tr.crypto_fee = tr.amount_before_fee - tr.amount_after_fee tr.crypto_fee = tr.amount_before_fee - tr.amount_after_fee