﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29755	Infinite migrations created after removing Meta.default_related_name	Aamir Rind	Simon Charette	"Consider there exists following models:


{{{
from django.db import models


class Parent(models.Model):
    name = models.CharField(max_length=50)


class Child(models.Model):
    parent = models.ForeignKey('polls.Parent')
    
    class Meta:
        default_related_name = 'children'
        ordering = ('id', )
}}}


- Run `makemigrations` command this will create `0001_initial.py` migration.
- Now go to `models.py` and remove `default_related_name` from `Child` model.
- Run `makemigrations` multiple times and it will create same migration again and again.

I have created a project to reproduce this issue: https://github.com/intellisense/django-infinite-migrations"	Bug	closed	Migrations	1.11	Normal	fixed	migrations,unlimited,infinite,makemigrations	aamir.adnan.rind@…	Ready for checkin	1	0	0	0	0	0
