﻿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
10935	forms.ImageField.clean should annotate the object returned by FileField.clean	Jeremy Dunck	petraszd	"ImageField.clean does some validation that the given file is, in fact, an image, but then just returns whatever the FileField gave it-- generally an UploadedFile.

I have a later Form.clean_* method which needs to do further work with the image, and so uses Image.open again.

I think it'd be good to annotate the UploadedFile with an image attribute to save the work of parsing the image yet again.

{{{
f.image = trial_image
}}}

Agree?"	Cleanup/optimization	closed	Forms	dev	Normal	fixed			Accepted	1	0	0	0	0	0
