Skip to content

Commit

Permalink
backfill migration
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Jan 26, 2023
1 parent 42add67 commit 7746aa9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 7746aa9

Please sign in to comment.