﻿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
24157	Prompt to add a new field after renaming	Basil Upornikov	nobody	"I have noticed a slightly weird logic of makemigration command after renaming a field in a model.py.

So, I did this:
1. Rename field
from
{{{#!python
descr = models.TextField('description')
}}}
to
{{{#!python
description = models.TextField()
}}}
2. Invoke 
{{{
manage.py makemigrations
}}}
And migration logic decided that I had added a new field //description// and asked me to provide default value.

But if to perform renaming this way:

from
{{{#!python
descr = models.TextField('description')
}}}
to
{{{#!python
description = models.TextField('description') # note a passed verbose name argument
}}}
then migration logic works well and recognizes renaming. 

"	Cleanup/optimization	closed	Migrations	1.7	Normal	duplicate		Simon Charette	Unreviewed	0	0	0	0	0	0
