def edit_image(self, obj):
    style = "style='width:278px;display:block;'"
    if obj.slide_image.pk:
        try:
            object_type = type(obj.slide_image).__name__
            url = reverse(('admin:%s_%s_change' % (obj.slide_image._meta.app_label, obj.slide_image._meta.model_name)), args=[obj.slide_image.id])
            return ('<a href="%s" %s>Edit Image &gt;</a>' % (url, style))
        except:
            return ('<span %s>&nbsp;</span>' % style)
    return ('<span %s>&nbsp;</span>' % style)
def edit_image(self, obj):
    style = "style='width:278px;display:block;'"
    if obj.slide_image.pk:
        try:
            object_type = type(obj.slide_image).__name__
            url = reverse(('admin:%s_%s_change' % (obj.slide_image._meta.app_label, obj.slide_image._meta.model_name)), args=[obj.slide_image.id])
            return ('<a href="%s" %s>Edit Image &gt;</a>' % (url, style))
        except:
            return ('<span %s>&nbsp;</span>' % style)
    return ('<span %s>&nbsp;</span>' % style)