Code Duplication    Length = 16-16 lines in 3 locations

pyfreebilling/did/migrations/0005_auto_20161129_0924.py 1 location

@@ 8-23 (lines=16) @@
5
from django.db import migrations, models
6
7
8
class Migration(migrations.Migration):
9
10
    dependencies = [
11
        ('did', '0004_auto_20161029_1134'),
12
    ]
13
14
    operations = [
15
        migrations.AlterField(
16
            model_name='did',
17
            name='cust_max_channels',
18
            field=models.PositiveIntegerField(blank=True, default=0, help_text='maximum simultaneous calls allowed\n            for this did. 0 means no limit', null=True, verbose_name='customer channels'),
19
        ),
20
        migrations.AlterField(
21
            model_name='did',
22
            name='prov_max_channels',
23
            field=models.PositiveIntegerField(default=0, help_text='maximum simultaneous calls allowed\n            for this did. 0 means no limit', verbose_name='provider channels'),
24
        ),
25
    ]
26

pyfreebilling/antifraud/migrations/0002_auto_20170522_1835.py 1 location

@@ 8-23 (lines=16) @@
5
from django.db import migrations, models
6
7
8
class Migration(migrations.Migration):
9
10
    dependencies = [
11
        ('antifraud', '0001_initial'),
12
    ]
13
14
    operations = [
15
        migrations.AlterField(
16
            model_name='fraud',
17
            name='amount_block_alert',
18
            field=models.DecimalField(decimal_places=4, default=0, help_text='Daily consumption allowed before blocking.', max_digits=12, verbose_name='Amount - block'),
19
        ),
20
        migrations.AlterField(
21
            model_name='fraud',
22
            name='minutes_block_alert',
23
            field=models.IntegerField(default=0, help_text='Daily minutes consumption allowed before blocking.', verbose_name='Nb minutes - Block'),
24
        ),
25
    ]
26

pyfreebilling/customerdirectory/migrations/0017_auto_20180207_1116.py 1 location

@@ 9-24 (lines=16) @@
6
import pyfreebilling.customerdirectory.models
7
8
9
class Migration(migrations.Migration):
10
11
    dependencies = [
12
        ('customerdirectory', '0016_auto_20170522_1123'),
13
    ]
14
15
    operations = [
16
        migrations.AlterField(
17
            model_name='customerdirectory',
18
            name='password',
19
            field=models.CharField(blank=True, default=pyfreebilling.customerdirectory.models.random_string, help_text="It's recommended to use strong\n                                passwords for the endpoint.", max_length=100, verbose_name='password'),
20
        ),
21
        migrations.AlterField(
22
            model_name='customerdirectory',
23
            name='registration',
24
            field=models.BooleanField(default=True, help_text='Is registration needed\n                                       for calling ? True, the phone needs to\n                                       register with correct username/password.\n                                       If false, you must specify a CIDR in SIP\n                                       IP CIDR !', verbose_name='Registration'),
25
        ),
26
    ]
27