class Migration(migrations.Migration):

    dependencies = [
        ('admin', '0003_logentry_add_action_flag_choices'),
        ('authtoken', '0002_auto_20160226_1747'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('apirest', '0003_design'),
    ]

    operations = [
        migrations.AlterField(
            model_name='design',
            name='design_file',
            field=models.FileField(default='designs_library/processing/default.jpg', null=True, upload_to=apirest.models.Design.path_and_rename, verbose_name='Diseño'),
        ),
        migrations.AlterField(
            model_name='design',
            name='design_status',
            field=models.CharField(choices=[('PROCESSING', 'Processing'), ('CONVERTED', 'Converted')], default='PROCESSING', max_length=15),
        ),
        migrations.AlterField(
            model_name='project',
            name='project_company',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Empresa del Proyecto'),
        ),
        migrations.DeleteModel(
            name='Company',
        ),
    ]
Exemplo n.º 2
0
class Migration(migrations.Migration):

    dependencies = [
        ('apirest', '0006_delete_company'),
    ]

    operations = [
        migrations.AlterField(
            model_name='design',
            name='design_file',
            field=models.FileField(
                null=True,
                upload_to=apirest.models.Design.path_and_rename,
                verbose_name='Diseño'),
        ),
    ]
Exemplo n.º 3
0
class Migration(migrations.Migration):

    dependencies = [
        ('apirest', '0007_auto_20200928_0013'),
    ]

    operations = [
        migrations.AlterField(
            model_name='design',
            name='design_file',
            field=models.FileField(
                null=True,
                unique=True,
                upload_to=apirest.models.Design.path_and_rename,
                verbose_name='Diseño'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('apirest', '0007_auto_20200927_2302'),
    ]

    operations = [
        migrations.AlterField(
            model_name='design',
            name='design_file',
            field=models.FileField(
                default='~/fileserver/designs_library/processing/default.jpg',
                null=True,
                upload_to=apirest.models.Design.path_and_rename,
                verbose_name='Diseño'),
        ),
    ]