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

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('Curriculums', '0017_auto_20180509_1428'),
    ]

    operations = [
        migrations.CreateModel(
            name='FotoDelPortada',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('FotoDePortada', models.ImageField(blank=True, null=True, upload_to=Curriculums.models.generate_path)),
                ('CuentaDelUsuario', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='FotoDePerfil',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('FotoDePerfil', models.ImageField(blank=True, null=True, upload_to=Curriculums.models.generate_path_avatar)),
                ('CuentaDelUsuario', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='datosusuario',
            name='FotoDePerfil',
        ),
        migrations.RemoveField(
            model_name='datosusuario',
            name='FotoDePortada',
        ),
    ]
Пример #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('Curriculums', '0013_flyers_flyers'),
    ]

    operations = [
        migrations.AddField(
            model_name='flyers',
            name='NombreArchivo',
            field=models.CharField(default='Agregar una Imagen',
                                   max_length=256),
        ),
        migrations.AlterField(
            model_name='flyers',
            name='flyers',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=Curriculums.models.generate_path_flyer),
        ),
        migrations.AlterField(
            model_name='flyers',
            name='link',
            field=models.CharField(default='Agregar un link', max_length=256),
        ),
    ]
Пример #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('Curriculums', '0015_remove_flyers_nombrearchivo'),
    ]

    operations = [
        migrations.AddField(
            model_name='diplomas',
            name='diploma',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=Curriculums.models.generate_path_flyer),
        ),
        migrations.AlterField(
            model_name='diplomas',
            name='link',
            field=models.CharField(
                default='www.tecnologiasdedicadas.com/Curriculum/{{ user.pk }}',
                max_length=256),
        ),
        migrations.AlterField(
            model_name='flyers',
            name='link',
            field=models.CharField(
                default='www.tecnologiasdedicadas.com/Curriculum/{{ user.pk }}',
                max_length=256),
        ),
    ]
Пример #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('Curriculums', '0010_auto_20180413_1017'),
    ]

    operations = [
        migrations.AlterField(
            model_name='datosusuario',
            name='FotoDePerfil',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=Curriculums.models.generate_path),
        ),
        migrations.AlterField(
            model_name='datosusuario',
            name='FotoDePortada',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=Curriculums.models.generate_path),
        ),
    ]
Пример #5
0
class Migration(migrations.Migration):

    dependencies = [
        ('Curriculums', '0011_auto_20180509_0140'),
    ]

    operations = [
        migrations.AlterField(
            model_name='datosusuario',
            name='FotoDePerfil',
            field=models.ImageField(
                blank=True,
                null=True,
                upload_to=Curriculums.models.generate_path_avatar),
        ),
    ]