Fixed missing image handler

This commit is contained in:
=
2012-09-13 00:02:02 +01:00
parent eea4e74084
commit c98b05503f

View File

@@ -55,7 +55,7 @@ class Mix(_BaseModel):
def get_image(self):
try:
if os.path.isfile(self.mix_image.file):
if os.path.isfile(self.mix_image.path):
image_root = localsettings.IMAGE_URL if hasattr(localsettings, 'IMAGE_URL') else settings.MEDIA_URL
ret = "%s/%s" % (image_root, self.mix_image.name)
return ret