-
-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
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
Labels
No labels