1 # Generated by Django 2.2.6 on 2019-11-27 08:49
3 from django.db import migrations
6 def migrate_plans(apps, schema_editor):
7 Schedule = apps.get_model('club', 'Schedule')
8 schedules = Schedule.objects.filter(method='payu-re')
9 schedules.filter(plan__interval=30).update(monthly=True)
10 schedules.filter(plan__interval=365).update(yearly=True)
13 class Migration(migrations.Migration):
16 ('club', '0015_auto_20191127_0947'),
22 migrations.RunPython.noop,