fix copy&paste error
This commit is contained in:
1 parent
68efd595b7
commit
3df3287bfa
1 file changed
+1
-1
@@ -4,7 +4,7 @@ from django.db import migrations
|
||||
|
||||
def separate_fees(apps, schema_editor):
|
||||
|
||||
Person = apps.get_model('transactions', 'Transaction')
|
||||
Transaction = apps.get_model('transactions', 'Transaction')
|
||||
for tr in Transaction.objects.all():
|
||||
if tr.amount_before_fee > 0:
|
||||
tr.crypto_fee = tr.amount_before_fee - tr.amount_after_fee
|
||||
|
||||
Reference in new issue
Block a user