From 7746aa97d3f138593adc791e33ce8829dc8363d3 Mon Sep 17 00:00:00 2001 From: Asad Ali Date: Thu, 26 Jan 2023 18:07:14 +0500 Subject: [PATCH] backfill migration --- ..._backfill_discount_payment_type_for_financial_assistance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = [