Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wm3ndez committed Sep 14, 2014
1 parent 5eba5c3 commit c3bee81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion realestate/listing/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def friendly_title(self, obj):

def image_miniatura(self, obj):
image = get_thumbnail(obj.image, '75x50', crop='center', quality=99)
return '<img src="%s" />' % image.url
if image is not None:
return '<img src="%s" />' % image.url
return _('Image not Available')

image_miniatura.short_description = _(u'Image')
image_miniatura.allow_tags = True
Expand Down

0 comments on commit c3bee81

Please sign in to comment.