@@ -0,0 +1,956 @@
+# -*- coding: utf-8 -*-%0A# Generated by Django 1.11.15 on 2019-11-08 07:19%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import migrations%0A%0A%0Adef fix_payout_status(apps, schema_editor):%0A    Payout = apps.get_model('funding', 'Payout')%0A    Payout.objects.filter(status='needs_approval').update(status='new')%0A    Payout.objects.filter(status='scheduled').update(status='new')%0A    Payout.objects.filter(status='re_scheduled').update(status='started')%0A    Payout.objects.filter(status='in_progress').update(status='started')%0A    Payout.objects.filter(status='partial').update(status='started')%0A    Payout.objects.filter(status='success').update(status='succeeded')%0A    # Payout.objects.filter(status='failed').update(status='failed')%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('funding', '0042_auto_20191104_1154'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.RunPython(fix_payout_status, migrations.RunPython.noop)%0A    %5D%0A

Fix payout stati