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 2902b68 commit 9bc1f1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jarbas/dashboard/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def supplier_info(self, obj):
def jarbas(self, obj):
base_url = '/layers/#/documentId/{}/'
url = base_url.format(obj.document_id)
image_src = '/static/favicon/favicon-16x16.png'
image = '<img alt="Ver no Jarbas" src="{}">'.format(image_src)
image = '<img alt="Ver no Jarbas" src="/static/favicon/favicon-16x16.png">'
return mark_safe('<a href="{}">{}</a>'.format(url, image))

jarbas.short_description = ''
Expand Down

0 comments on commit 9bc1f1f

Please sign in to comment.