Пример #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('bd', '0015_auto_20160424_1619'),
    ]

    operations = [
        migrations.AlterField(
            model_name='charge',
            name='members',
            field=models.ManyToManyField(to='bd.Member',
                                         verbose_name='ocupan el cargo:'),
        ),
        migrations.AlterField(
            model_name='institution',
            name='phone',
            field=models.CharField(max_length=32,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='tel\xe9fono'),
        ),
        migrations.AlterField(
            model_name='member',
            name='address',
            field=models.CharField(max_length=128, verbose_name='direci\xf3n'),
        ),
        migrations.AlterField(
            model_name='member',
            name='level',
            field=models.CharField(choices=[('inferior', 'Inferior'),
                                            ('primario', 'Primario'),
                                            ('secundario', 'Secundario'),
                                            ('preuniversitario',
                                             'Preuniversitario'),
                                            ('universitario', 'Universitario'),
                                            ('master', 'Master'),
                                            ('doctor', 'Doctor')],
                                   max_length=65,
                                   verbose_name='nivel educacional'),
        ),
        migrations.AlterField(
            model_name='member',
            name='phone',
            field=models.CharField(blank=True,
                                   max_length=32,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='tel\xe9fono'),
        ),
        migrations.AlterField(
            model_name='moneytransaction',
            name='status',
            field=models.BooleanField(default=False, verbose_name='estado'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('bd', '0006_auto_20160422_2156'),
    ]

    operations = [
        migrations.AlterField(
            model_name='member',
            name='gender',
            field=models.CharField(blank=True, choices=[('femmale', 'Femenino'), ('male', 'Masculino')], max_length=32, validators=[bd.models.DNIValidator], verbose_name='Genero'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('bd', '0008_auto_20160422_2343'),
    ]

    operations = [
        migrations.AlterField(
            model_name='member',
            name='name',
            field=models.CharField(
                max_length=65,
                validators=[bd.models.OnlyLettersValidators],
                verbose_name='nombre'),
        ),
    ]
Пример #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('bd', '0002_auto_20160417_1958'),
    ]

    operations = [
        migrations.AlterField(
            model_name='church',
            name='phone',
            field=models.CharField(max_length=25,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='telefono'),
        ),
        migrations.AlterField(
            model_name='institution',
            name='email',
            field=models.CharField(max_length=65,
                                   validators=[
                                       django.core.validators.EmailValidator(
                                           'El correo no es valido')
                                   ],
                                   verbose_name='correo electronico'),
        ),
        migrations.AlterField(
            model_name='institution',
            name='phone',
            field=models.CharField(max_length=25,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='telefono'),
        ),
        migrations.AlterField(
            model_name='member',
            name='dni',
            field=models.CharField(
                max_length=11,
                primary_key=True,
                serialize=False,
                validators=[
                    django.core.validators.MinLengthValidator(
                        11, 'El carnet debe tener 11 digitos'),
                    django.core.validators.MaxLengthValidator(
                        11, 'El carnet debe tener 11 digitos'),
                    bd.models.DNIValidator
                ],
                verbose_name='carnet de identidad'),
        ),
        migrations.AlterField(
            model_name='member',
            name='phone',
            field=models.CharField(blank=True,
                                   max_length=25,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='telefono'),
        ),
        migrations.AlterField(
            model_name='moneytransaction',
            name='amount',
            field=models.IntegerField(
                default=0,
                validators=[
                    django.core.validators.MinValueValidator(
                        1,
                        message=
                        'Las transacciones tiene que tener monto mayor que 0')
                ],
                verbose_name='monto'),
        ),
        migrations.AlterField(
            model_name='moneytransaction',
            name='type',
            field=models.CharField(choices=[('in', 'Entrada'),
                                            ('out', 'Salida')],
                                   max_length=32,
                                   verbose_name='tipo'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('bd', '0010_auto_20160423_0002'),
    ]

    operations = [
        migrations.CreateModel(
            name='Charge',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('maxCount',
                 models.IntegerField(
                     default=1,
                     validators=[
                         django.core.validators.MinValueValidator(
                             1,
                             message=
                             'La cantidad maxima de personas en un cargo debe ser mayor que 1'
                         )
                     ],
                     verbose_name='cantidad M\xe1xima')),
                ('name',
                 models.CharField(max_length=64,
                                  validators=[bd.models.OnlyLettersValidators
                                              ])),
            ],
        ),
        migrations.RemoveField(
            model_name='church_member',
            name='church',
        ),
        migrations.RemoveField(
            model_name='church_member',
            name='member',
        ),
        migrations.AlterModelOptions(
            name='cell',
            options={'verbose_name': 'C\xe9lula'},
        ),
        migrations.AlterModelOptions(
            name='designation',
            options={
                'verbose_name': 'Denominaci\xf3n',
                'verbose_name_plural': 'Denominaciones'
            },
        ),
        migrations.AlterModelOptions(
            name='institution',
            options={
                'verbose_name': 'Instituci\xf3n',
                'verbose_name_plural': 'Instituciones'
            },
        ),
        migrations.AlterModelOptions(
            name='moneytransaction',
            options={
                'verbose_name': 'Transacci\xf3n Monetaria',
                'verbose_name_plural': 'Transacciones Monetarias'
            },
        ),
        migrations.AlterModelOptions(
            name='song',
            options={
                'verbose_name': 'Canci\xf3n',
                'verbose_name_plural': 'Canciones'
            },
        ),
        migrations.RemoveField(
            model_name='member',
            name='directingChurch',
        ),
        migrations.AlterField(
            model_name='cell',
            name='address',
            field=models.CharField(max_length=124,
                                   verbose_name='direcci\xf3n'),
        ),
        migrations.AlterField(
            model_name='cell',
            name='host',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='host',
                to='bd.Member',
                verbose_name='anfitri\xf3n'),
        ),
        migrations.AlterField(
            model_name='church',
            name='address',
            field=models.CharField(max_length=65, verbose_name='direcci\xf3n'),
        ),
        migrations.AlterField(
            model_name='church',
            name='designation',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='bd.Designation',
                verbose_name='denominaci\xf3n'),
        ),
        migrations.AlterField(
            model_name='church',
            name='phone',
            field=models.CharField(max_length=25,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='tel\xe9fono'),
        ),
        migrations.AlterField(
            model_name='institution',
            name='email',
            field=models.CharField(max_length=65,
                                   validators=[
                                       django.core.validators.EmailValidator(
                                           'El correo no es v\xe1lido')
                                   ],
                                   verbose_name='correo electr\xf3nico'),
        ),
        migrations.AlterField(
            model_name='institution',
            name='phone',
            field=models.CharField(max_length=25,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='tel\xe9fono'),
        ),
        migrations.AlterField(
            model_name='member',
            name='address',
            field=models.CharField(max_length=65, verbose_name='direci\xf3n'),
        ),
        migrations.AlterField(
            model_name='member',
            name='dni',
            field=models.CharField(
                max_length=11,
                primary_key=True,
                serialize=False,
                validators=[
                    django.core.validators.MinLengthValidator(
                        11, 'El n\xfamero debe tener 11 d\xedgitos'),
                    django.core.validators.MaxLengthValidator(
                        11, 'El n\xfamero debe tener 11 d\xedgitos'),
                    bd.models.DNIValidator
                ],
                verbose_name='n\xfamero de identidad'),
        ),
        migrations.AlterField(
            model_name='member',
            name='gender',
            field=models.CharField(choices=[('femmale', 'Femenino'),
                                            ('male', 'Masculino')],
                                   max_length=32,
                                   verbose_name='g\xe9nero'),
        ),
        migrations.AlterField(
            model_name='member',
            name='occupation',
            field=models.CharField(blank=True,
                                   max_length=65,
                                   verbose_name='ocupaci\xf3n'),
        ),
        migrations.AlterField(
            model_name='member',
            name='phone',
            field=models.CharField(blank=True,
                                   max_length=25,
                                   validators=[bd.models.PhoneValidator],
                                   verbose_name='tel\xe9fono'),
        ),
        migrations.AlterField(
            model_name='moneytransaction',
            name='description',
            field=models.CharField(max_length=124,
                                   verbose_name='descripci\xf3n'),
        ),
        migrations.AlterField(
            model_name='moneytransaction',
            name='institution',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='bd.Institution',
                verbose_name='instituci\xf3n que dona/recibe'),
        ),
        migrations.AlterField(
            model_name='moneytransaction',
            name='member',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='bd.Member',
                verbose_name='miembro que dona/recibe'),
        ),
        migrations.DeleteModel(name='Church_Member', ),
        migrations.AddField(
            model_name='charge',
            name='members',
            field=models.ManyToManyField(to='bd.Member',
                                         verbose_name='ocupan el cargo'),
        ),
    ]