Skip to content

New migration created in site-packages #156

@mezitax

Description

@mezitax

I am using a multi tenant app, and executing makemigrations generates a new migration in django-categories.

from django.db import migrations, models
import tenant_schemas.storage


class Migration(migrations.Migration):

    dependencies = [
        ('categories', '0004_auto_20200517_1832'),
    ]

    operations = [
        migrations.AlterField(
            model_name='category',
            name='level',
            field=models.PositiveIntegerField(db_index=True, editable=False),
        ),
        migrations.AlterField(
            model_name='category',
            name='lft',
            field=models.PositiveIntegerField(db_index=True, editable=False),
        ),
        migrations.AlterField(
            model_name='category',
            name='rght',
            field=models.PositiveIntegerField(db_index=True, editable=False),
        ),
        migrations.AlterField(
            model_name='category',
            name='thumbnail',
            field=models.FileField(blank=True, null=True, storage=tenant_schemas.storage.TenantFileSystemStorage(), upload_to='uploads/categories/thumbnails'),
        ),
    ]

*The last line is because I have in my settings.py:
DEFAULT_FILE_STORAGE = 'tenant_schemas.storage.TenantFileSystemStorage'

how to avoid new migrations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions