Skip to content

Commit

Permalink
Transform dashboard admin file in a module
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos committed May 30, 2018
1 parent 1fac6da commit 1dcfdb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _format_document(self, obj):
return obj.cnpj_cpf

def supplier_info(self, obj):
return mark_safe('{}<br>{}'.format(obj.supplier, self._format_document(obj)))
return mark_safe(f'{obj.suplier}<br>{self._format_document(obj)}')

supplier_info.short_description = 'Fornecedor'

Expand All @@ -383,7 +383,7 @@ def rosies_tweet(self, obj):
def receipt_link(self, obj):
if not obj.receipt_url:
return ''
return mark_safe('<a target="_blank" href="{}">📃</a>'.format(obj.receipt_url))
return mark_safe(f'<a target="_blank" href="{obj.receipt_url}">📃</a>')

receipt_link.short_description = ''

Expand Down

0 comments on commit 1dcfdb7

Please sign in to comment.