1 # Generated by Django 2.2.19 on 2021-10-14 09:01
3 from django.db import migrations
4 from django.utils.timezone import now
7 def fill_cancelled_date(apps, schema_editor):
8 DirectDebit = apps.get_model('pz', 'DirectDebit')
9 DirectDebit.objects.filter(is_cancelled=True).update(
14 def fill_is_cancelled(apps, schema_editor):
15 DirectDebit = apps.get_model('pz', 'DirectDebit')
16 DirectDebit.objects.exclude(cancelled_at=None).update(
21 class Migration(migrations.Migration):
24 ('pz', '0007_auto_20211014_1100'),