<filename>corehq/apps/accounting/migrations/0039_auto_20180828_2258.py<gh_stars>100-1000
# Generated by Django 1.11.14 on 2018-08-28 22:58

from django.db import migrations, models

from corehq.apps.accounting.bootstrap.config.user_buckets_august_2018 import (
    BOOTSTRAP_CONFIG,
)
from corehq.apps.accounting.bootstrap.utils import ensure_plans


def noop(*args, **kwargs):
    pass


def _bootstrap_new_monthly_pricing(apps, schema_editor):
    ensure_plans(BOOTSTRAP_CONFIG, verbose=True, apps=apps)


class Migration(migrations.Migration):

    dependencies = [
        ('accounting', '0038_remove_billingaccount_restrict_signup_email'),
    ]

    operations = [
        migrations.RunPython(_bootstrap_new_monthly_pricing, reverse_code=noop),

        migrations.AddField(
            model_name='softwareplan',
            name='is_annual_plan',
            field=models.BooleanField(default=False),
        ),
    ]

<filename>corehq/apps/accounting/migrations/0039_auto_20180828_2258.py<gh_stars>100-1000
# Generated by Django 1.11.14 on 2018-08-28 22:58

from django.db import migrations, models

from corehq.apps.accounting.bootstrap.config.user_buckets_august_2018 import (
    BOOTSTRAP_CONFIG,
)
from corehq.apps.accounting.bootstrap.utils import ensure_plans


def noop(*args, **kwargs):
    pass


def _bootstrap_new_monthly_pricing(apps, schema_editor):
    ensure_plans(BOOTSTRAP_CONFIG, verbose=True, apps=apps)


class Migration(migrations.Migration):

    dependencies = [
        ('accounting', '0038_remove_billingaccount_restrict_signup_email'),
    ]

    operations = [
        migrations.RunPython(_bootstrap_new_monthly_pricing, reverse_code=noop),

        migrations.AddField(
            model_name='softwareplan',
            name='is_annual_plan',
            field=models.BooleanField(default=False),
        ),
    ]

# Generated by Django 1.11.14 on 2018-08-28 22:58