<commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-13 17:56
from __future__ import absolute_import
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('accounting', '0016_grandfather_reportbuilder_5_pro'),
    ]

    operations = [
        migrations.AlterField(
            model_name='subscription',
            name='no_invoice_reason',
            field=models.CharField(blank=True, default='', max_length=256),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='subscription',
            name='salesforce_contract_id',
            field=models.CharField(blank=True, default='', max_length=80),
            preserve_default=False,
        ),
    ]
<commit_msg>assign default empty string in migration<commit_after># -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-13 17:56
from __future__ import absolute_import
from __future__ import unicode_literals

from django.db import migrations, models

from corehq.sql_db.operations import HqRunPython


def _assign_default_values(apps, schema_editor):
    Subscription = apps.get_model('accounting', 'Subscription')
    Subscription.objects.filter(
        no_invoice_reason__isnull=True
    ).update(no_invoice_reason='')
    Subscription.objects.filter(
        salesforce_contract_id__isnull=True
    ).update(salesforce_contract_id='')


class Migration(migrations.Migration):

    dependencies = [
        ('accounting', '0016_grandfather_reportbuilder_5_pro'),
    ]

    operations = [
        HqRunPython(_assign_default_values),
        migrations.AlterField(
            model_name='subscription',
            name='no_invoice_reason',
            field=models.CharField(blank=True, default='', max_length=256),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='subscription',
            name='salesforce_contract_id',
            field=models.CharField(blank=True, default='', max_length=80),
            preserve_default=False,
        ),
    ]

{'fraction_non_alphanumeric': 0.10208816705336426, 'fraction_numerical': 0.025986078886310906, 'mean_word_length': 3.0526315789473686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6439763', 'n_tokens_mistral': 655, 'n_tokens_neox': 617, 'n_words': 108}