From 2902b6862cff35480ac1c0b0092164dfb9a09d9b Mon Sep 17 00:00:00 2001 From: Mario Sergio Date: Wed, 14 Aug 2019 11:04:10 -0300 Subject: [PATCH] Refactoring to reduce the number of lines. --- jarbas/dashboard/admin/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jarbas/dashboard/admin/__init__.py b/jarbas/dashboard/admin/__init__.py index 9fa92a240..8618a8a0b 100644 --- a/jarbas/dashboard/admin/__init__.py +++ b/jarbas/dashboard/admin/__init__.py @@ -120,9 +120,7 @@ def rosies_tweet(self, obj): def receipt_link(self, obj): if not obj.receipt_url: return '' - image_src = '/static/image/receipt_icon.png' - image = ''.format(image_src) - + image = '' return mark_safe('{}'.format(obj.receipt_url, image)) receipt_link.short_description = ''