Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New migration created in site-packages #154

Open
cccaballero opened this issue May 17, 2020 · 0 comments
Open

New migration created in site-packages #154

cccaballero opened this issue May 17, 2020 · 0 comments

Comments

@cccaballero
Copy link
Contributor

I am using this great app and I have found that when I run makemigrations a new migration is created in the site-packages module containing:

# Generated by Django 3.0.6 on 2020-05-17 18:32

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('categories', '0003_auto_20200306_1050'),
    ]

    operations = [
        migrations.AlterField(
            model_name='categoryrelation',
            name='content_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType', verbose_name='content type'),
        ),
    ]

This, of course, is triggering errors because the file is generated with a different name every time, this file, of course, should not be created dynamically because packages should be immutable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant