main image code

This commit is contained in:
Sanj 2011-10-05 20:58:14 +05:30
parent 724bbbd9ca
commit 1b60c71be9

View File

@ -82,7 +82,7 @@ class ItfModel(models.Model):
imgfield = None
if imgfield is not None:
try:
thumb = get_thumbnail(imgfield, "150x142", crop="center")
thumb = get_thumbnail(imgfield, "150x142", crop="center").url
except:
thumb = ''
else: