@@ -0,0 +1,727 @@
+# -*- coding: utf-8 -*-%0A# Generated by Django 1.11.15 on 2019-11-08 09:08%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0A%0Adef fix_funding_matching_currencies(apps, schema_editor):%0A    Funding = apps.get_model('funding', 'Funding')%0A    for funding in Funding.objects.filter(amount_matching__gt=0):%0A        if funding.amount_matching.currency != funding.target.currency:%0A            funding.amount_matching.currency = funding.target.currency%0A            funding.save()%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('funding', '0043_auto_20191108_0819'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(fix_funding_matching_currencies, migrations.RunPython.noop)%0A    %5D%0A

Fix amount matching in wrong currency