﻿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
22975	Cannot rename model keeping db table name	rhcarvalho	nobody	"Django migrations do not work when you rename a model keeping the db table name. For instance:

# -- models.py --
class Book(models.Model):
    name = models.CharField()
    class Meta:
        db_table = ""books""


# -- models.py  after renaming model --
class AwesomeBook(models.Model):
    name = models.CharField()
    class Meta:
        db_table = ""books""


The migration system ends up making an operational error by trying to rename the table from `books` to `books`, when the rename is unnecessary.

https://github.com/django/django/commit/fddc5957c53bd654312c4a238a8cdcfe5f4ef4cc#commitcomment-6916125"	Bug	closed	Migrations	1.7-rc-1	Release blocker	fixed	migrations		Accepted	0	0	0	0	0	0
