diff --git a/ecommerce/migrations/0032_backfill_discount_payment_type_for_financial_assistance.py b/ecommerce/migrations/0032_backfill_discount_payment_type_for_financial_assistance.py index 2c3f69529f..21435b2361 100644 --- a/ecommerce/migrations/0032_backfill_discount_payment_type_for_financial_assistance.py +++ b/ecommerce/migrations/0032_backfill_discount_payment_type_for_financial_assistance.py @@ -5,12 +5,13 @@ def backfill_payment_type_for_financial_assistance(apps, schema_editor): Discount = apps.get_model("ecommerce", "Discount") + Discount.objects.filter(for_flexible_pricing=True).update(payment_type="FA") class Migration(migrations.Migration): dependencies = [ - ('ecommerce', '0031_discount_payment_type'), + ("ecommerce", "0031_discount_payment_type"), ] operations = [