white spacing and remove var's prefix

This commit is contained in:
maphy-psd 2017-08-20 14:29:51 +02:00 committed by GitHub
parent 73af9552ec
commit 7a627e4ad8

View File

@ -71,12 +71,12 @@ class DocumentAdmin(CommonAdmin):
def thumbnail(self, obj):
if settings.FORCE_SCRIPT_NAME:
_src="{}/fetch/thumb/{}".format(settings.FORCE_SCRIPT_NAME,obj.id)
src_link = "{}/fetch/thumb/{}".format(settings.FORCE_SCRIPT_NAME, obj.id)
else:
_src="/fetch/thumb/{}".format(obj.id)
src_link = "/fetch/thumb/{}".format(obj.id)
png_img = self._html_tag(
"img",
src=_src,
src=src_link,
width=180,
alt="Thumbnail of {}".format(obj.file_name),
title=obj.file_name