﻿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
2883	path is blank in an image field when using a save hook	adamduren@…	Adrian Holovaty	"  def resizeThis(self):
    img = pImage.open(self.path)
    cImgSize = img.size
    newH = int((500*cImgSize[1])/cImgSize[0])
    img2 = img.resize((500, newH), pImage.ANTIALIAS)
    img2.save(self.path)

 def save(self):
    super(Image, self).save()
    self.resizeThis()

When I try this i get an IO Error and I'm not sure if it's a defect or not. It says self.path is empty for the image field in the model."	defect	closed	contrib.admin		major	worksforme			Unreviewed	0	0	0	0	0	0
