main image code
This commit is contained in:
parent
724bbbd9ca
commit
1b60c71be9
|
@ -82,7 +82,7 @@ class ItfModel(models.Model):
|
||||||
imgfield = None
|
imgfield = None
|
||||||
if imgfield is not None:
|
if imgfield is not None:
|
||||||
try:
|
try:
|
||||||
thumb = get_thumbnail(imgfield, "150x142", crop="center")
|
thumb = get_thumbnail(imgfield, "150x142", crop="center").url
|
||||||
except:
|
except:
|
||||||
thumb = ''
|
thumb = ''
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user