intellisense / django-infinite-migrations

A Django bug where removing model Meta option `default_related_name` causes infinite migrations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-infinite-migrations

A Django bug where removing model Meta option default_related_name causes infinite migrations.

Go ahead and clone this project and run multiple times:

./manage.py makemigrations

This will cause the command to generate migration again and again for this change:

migrations.AlterField(
    model_name='child',
    name='parent',
    field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='polls.Parent'),
),

which already exists in migration 0002_auto_20180913_2236.py.

Django Ticket: #29755

About

A Django bug where removing model Meta option `default_related_name` causes infinite migrations


Languages

Language:Python 100.0%