# Generated by Django 2.0.7 on 2019-02-22 02:14 from django.db import migrations def forwards(apps, schema_editor): Payment = apps.get_model('payment', 'Payment') for payment in Payment.objects.filter(payment_platform__isnull=True): payment.payment_platform = 1 # PAYMENT_PLATFORM_PAYMENTWALL payment.save() class Migration(migrations.Migration): dependencies = [ ('payment', '0033_payment_payment_platform'), ] operations = [ migrations.RunPython(forwards), ]