main image code
This commit is contained in:
parent
724bbbd9ca
commit
1b60c71be9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user