﻿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
11149	error with def save_form_data --	Roman Kalinichenko	Karen Tracey	"Hi everyone

I use django revision 10000 and it is normal. But when I update to revision more then 10200 that I get error:
{{{
cannot identify image fileRequest Method:	POST
Request URL:	http://127.0.0.1:8000/users/a1/
Exception Type:	IOError
Exception Value:	cannot identify image file
Exception Location:	/usr/lib/python2.5/site-packages/PIL/Image.py in open, line 1917
Python Executable:	/usr/bin/python2.5
Python Version:	2.5.4
}}} 

My code where is problem is:

{{{
class ThumbnailImageField(models.ImageField):
    def save_form_data(self, instance, data):
        if data and isinstance(data, UploadedFile):
            im = Image.open(data).convert(""RGB"")

}}}

if I change data to constant path that it will be work without error"		closed	Database layer (models, ORM)	dev		fixed			Accepted	0	0	0	0	0	0
