Skip to content

Commit

Permalink
Refactoring to reduce the number of lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomario committed Aug 14, 2019
1 parent 5131787 commit 2902b68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jarbas/dashboard/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<img src="{}">'.format(image_src)

image = '<img src="/static/image/receipt_icon.png">'
return mark_safe('<a target="_blank" href="{}">{}</a>'.format(obj.receipt_url, image))

receipt_link.short_description = ''
Expand Down

0 comments on commit 2902b68

Please sign in to comment.