Code Duplication    Length = 16-17 lines in 4 locations

pyfreebilling/did/migrations/0006_auto_20161129_0935.py 1 location

@@ 9-25 (lines=17) @@
6
import django.db.models.deletion
7
8
9
class Migration(migrations.Migration):
10
11
    dependencies = [
12
        ('pyfreebill', '0012_auto_20161118_1758'),
13
        ('did', '0005_auto_20161129_0924'),
14
    ]
15
16
    operations = [
17
        migrations.AddField(
18
            model_name='did',
19
            name='cust_ratecard',
20
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='pyfreebill.RateCard', verbose_name='Customer rate plan'),
21
        ),
22
        migrations.AddField(
23
            model_name='did',
24
            name='prov_ratecard',
25
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='pyfreebill.ProviderTariff', verbose_name='provider rate plan'),
26
        ),
27
    ]
28

pyfreebilling/customerdirectory/migrations/0003_auto_20161116_1745.py 1 location

@@ 9-25 (lines=17) @@
6
import django.db.models.deletion
7
8
9
class Migration(migrations.Migration):
10
11
    dependencies = [
12
        ('normalizationrule', '0004_auto_20161116_1745'),
13
        ('customerdirectory', '0002_subscriber'),
14
    ]
15
16
    operations = [
17
        migrations.AddField(
18
            model_name='customerdirectory',
19
            name='callee_norm',
20
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='caleenormrules', to='normalizationrule.NormalizationGroup', verbose_name='Destination number normalization rules'),
21
        ),
22
        migrations.AddField(
23
            model_name='customerdirectory',
24
            name='callerid_norm',
25
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='calleridnormrules', to='normalizationrule.NormalizationGroup', verbose_name='CallerID normalization rules'),
26
        ),
27
    ]
28

pyfreebilling/did/migrations/0003_auto_20161025_1658.py 1 location

@@ 9-24 (lines=16) @@
6
import django.db.models.deletion
7
8
9
class Migration(migrations.Migration):
10
11
    dependencies = [
12
        ('did', '0002_auto_20161012_1448'),
13
    ]
14
15
    operations = [
16
        migrations.AlterField(
17
            model_name='did',
18
            name='cust_plan',
19
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='did.CustomerRatesDid', verbose_name='customer rate plan'),
20
        ),
21
        migrations.AlterField(
22
            model_name='did',
23
            name='customer',
24
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='didcustomer', to='pyfreebill.Company', verbose_name='Customer'),
25
        ),
26
    ]
27

pyfreebilling/customerdirectory/migrations/0004_auto_20161116_1749.py 1 location

@@ 9-24 (lines=16) @@
6
import django.db.models.deletion
7
8
9
class Migration(migrations.Migration):
10
11
    dependencies = [
12
        ('customerdirectory', '0003_auto_20161116_1745'),
13
    ]
14
15
    operations = [
16
        migrations.AlterField(
17
            model_name='customerdirectory',
18
            name='callee_norm',
19
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='caleenormrules', to='normalizationrule.NormalizationGroup', verbose_name='Destination number normalization rules'),
20
        ),
21
        migrations.AlterField(
22
            model_name='customerdirectory',
23
            name='callerid_norm',
24
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='calleridnormrules', to='normalizationrule.NormalizationGroup', verbose_name='CallerID normalization rules'),
25
        ),
26
    ]
27