﻿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
23131	Document caveats with callable references in migrations	Piotr Maliński	nobody	"Model fields support callables in few places, like:
{{{
image = models.ImageField(db_index=True, upload_to=upload_path, blank=True)
}}} 
where '''upload_path''' is a function. Migrating model with such field will give:

{{{
 ('image', models.ImageField(blank=True, upload_to=my_app.models.upload_path)),
}}}


That can easily cause problems. Future changes to the code (like different callable name) would break old migrations (which then would break tests). Does migrations must copy everything?"	Cleanup/optimization	closed	Documentation	1.7-rc-1	Normal	fixed			Accepted	1	0	0	0	0	0
