﻿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
32464	"Enable ""detaching"" of file from FileField and ImageField"	Samuli-Petrus Korhonen	nobody	"When model contains FileField (or ImageField) cloning an instance by setting primarykey to None and saving object leads to problems. It seems that the resulting objects refer to same file which is not the desired behaviour as this leads to invalid objects.

It would make sense to have facility to ""detach"" FileField from file without deleting the actual file. After taking a look at the FieldFile code I think this functionality would be trivial to add and I would be happy to submit a pull request implementing this feature if it has sufficient merit to be merged. 

Also, I would like to have feedback on whether maintainers prefer a separate ""detach"" function or if it should be implemented as parameter on ""delete"". 

PS. I could also implement ""attach"" function if there is need for it.

"	New feature	closed	Database layer (models, ORM)	3.1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
