You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
524 B

# 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),
]