﻿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
24354	Migrations that rename subclasses cause problems with relations	Matthew Wilkes	nobody	"On a Django 1.7.4 site (and 1.7.x), if you have a model that is the destination of a relation and subclass that model then migrations for the subclass incorrectly cause the relations aimed at the parent to be repointed. The generated migrations look like noops, as the models in question aren't actually changed. I had this issue today on a DjangoCMS site, causing migrations to be generated in my django-cms egg.

For example:
    
{{{
class Author(models.Model):
    real_name = models.CharField('name', max_length=50)

class Pseudonym(Author):
    pseudonym = models.CharField('name', max_length=50)

class Book(models.Model):
    author = models.ForeignKey(Author)
}}}

If the class Pseudonym is renamed then later migrations will ''always'' attempt to reset the author field on book.

This is already fixed on 1.8 and master."	Bug	closed	Migrations	1.7	Normal	fixed			Accepted	1	0	0	1	0	0
